Skip to content

Allow multiple level @InheritanceType #86

@lukasj

Description

@lukasj

Hello,

at the moment the spec says the annotation InheritanceType can be used only once - any subsequent uses are just ignored. My suggestion is to allow for multiple uses of this annotation.
For example let's say I have the following hierarchy:

AbstractEntity (with InheritanceType=TABLE_PER_CLASS)
 \--Product
 \--Widget (with InheritanceType=SINGLE_TABLE)
     \--Map
     \--Carousel
     \--Banner

I would expect Product and Widget to be in their own tables, but Map, Carousel and Banner to be all in the Widget table. However, currently this is not supported.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions