This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Usage of inheritance in hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Usage of inheritance in hibernate" Watch "Usage of inheritance in hibernate" New topic
Author

Usage of inheritance in hibernate

Rithanya Laxmi
Ranch Hand

Joined: Jan 24, 2011
Posts: 136
Hi,

When to use the hibernate inheritance table per class, subclass and concreate class? I havent seen it is beern used in any of my previous hibernate projects. Hence please clarify.

Thanks.
Emanuel Kadziela
Ranch Hand

Joined: Mar 24, 2005
Posts: 186
Why don't you read this hibernate documentation on inheritance and the various strategies first, and then ask more specific questions if you don't understand the finer details.
Rithanya Laxmi
Ranch Hand

Joined: Jan 24, 2011
Posts: 136
Thanks. I know about hibernate inheritance, but I don't know at what situation we need to use inheritance and which one of them? Please clarify.
Emanuel Kadziela
Ranch Hand

Joined: Mar 24, 2005
Posts: 186
A Google search of "choosing the right hibernate inheritance strategy" yields this result in around 10th place: http://what-when-how.com/hibernate/inheritance-and-custom-types-hibernate/, an article with a great wealth of information on pros and cons of each strategy, details on their implementations and configurations, and other related advice and information.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Usage of inheritance in hibernate
 
Similar Threads
How & where & why Hibernate inheritance is uses full
Database Inheritance in Hibernate
JDBC and Inheritance
HIbernate
inheritance