Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Usage of inheritance in hibernate

 
Rithanya Laxmi
Ranch Hand
Posts: 185
  • 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
  • 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: 185
  • 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
  • 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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic