Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple level @InheritanceType #86

Open
lukasj opened this issue Jul 28, 2014 · 3 comments
Open

Allow multiple level @InheritanceType #86

lukasj opened this issue Jul 28, 2014 · 3 comments

Comments

@lukasj
Copy link
Contributor

lukasj commented Jul 28, 2014

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.

@lukasj
Copy link
Contributor Author

lukasj commented Jul 28, 2014

@glassfishrobot Commented
Reported by paranoiabla

@lukasj
Copy link
Contributor Author

lukasj commented May 5, 2017

@glassfishrobot Commented
This issue was imported from java.net JIRA JPA_SPEC-86

@lukasj
Copy link
Contributor Author

lukasj commented Aug 31, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant