Discriminator column in the joined table
-----------------------------------------
Key: HHH-4466
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4466
Project: Hibernate Core
Issue Type: Improvement
Components: core
Reporter: Xavier Jodoin
Attachments: UsertypeExample.zip
When using the JOINED inheritance strategy and creating a link to the root Entity of the
hierarchy, hibernate only puts the id in reference
and thus when the entity is loaded lazily, hibernate joins all subclasses because it
can't know which Entity is being referred to.
It would be useful to support having a discriminator column in the joined table to specify
the instance class.
It is possible to emulate this feature with an usertype but some features like querying
become harder to implement.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira