Duplicate
Details
Assignee
Former userFormer user(Deactivated)Reporter
Ka WuKa WuComponents
Priority
Major
Details
Details
Assignee
Former user
Former user(Deactivated)Reporter
Ka Wu
Ka WuComponents
Priority
Created December 21, 2011 at 5:01 AM
Updated December 21, 2011 at 9:24 AM
Resolved December 21, 2011 at 9:24 AM
When using @Inheritance(strategy = InheritanceType.JOINED) and @DiscriminatorColumn(name = "discriminator") you would assume any JPA provider to persist the correct @DiscriminatorValue into the discriminator column. But this doesn't happen with Hibernate 4 (and before). While this is not absolutely necessary I consider this a must as anybody would expect Hibernate to persist a discriminator if mapped.
As a member of the JPA expert group expressed it:
Please add this small feature, it would be a lot more consistent to common expectation and SINGLE_TABLE inheritance type.