This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
The discriminator column is meant to be used in the "single table per class hierarchy" mapping. Doesn't apply here...
Joined: Sep 16, 2002
Thanks, however, that still does not answer my question
The book - Java Persistence with Hibernate lists four types of inheritance Paradigms
#4 Table per subclass�Represent is a (inheritance) relationships as has a (foreign key) relationships.
Some database systems (Oracle, for example) limit the number of tables in an outer join operation. For a wide hierarchy, you may want to switch to a different fetching strategy that executes an immediate second select instead of an outer join:
I'm wondering if anybody has an example of this with annotations
Joined: Dec 11, 2006
In the sample, the thing is called "discriminator-value", and there is, in JPA at least, a @DiscriminatorValue annotation. Maybe this is what you are looking for...