File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Usage of inheritance in hibernate

 
Rithanya Laxmi
Ranch Hand
Posts: 184
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 187
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 184
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 187
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic