Upgrade
Sign In : Sign Up : Blog : Search: Language : Help :
This website is now frozen, please migrate your content to BotLibre.com or BotLibre.biz
Java Persistence Performance : Can I have @ManyToOne relationship to an abstract entity using table per class?

RE: Can I have @ManyToOne relationship to an abstract entity using table per class?

by jamesssss posted Feb 9 2015, 5:21

It should be possible, but sounds like you may have hit a bug (ensure you are using the latest version/patch). Try checking if the bug is already logged on Eclipselink's Bugzilla, vote it up, or log a new one.

You might want to try a @VariableOneToOne instead, then you can store a type indicator to the target subclass. Otherwise you could change the inheritance to JOINED, or remove the relationship, and just query for it.


Id: 328157
Posted: Feb 9 2015, 5:21
Replies: 0
Views: 1646, today: 2, week: 7, month: 19
I'm sure
Flag graphic as offensive, or in violation of site rules