Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mapping Inheritance with Hibernate & Table Per Subclass

 
chiranjeevi gunturu
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Can you please explain me how to implement inheritance in hibernate
Also is there any relation between inheritance and table per subclass.

Thanks,
Chiranjeevi
 
Bhagat Singh Rawat
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
chiranjeevi gunturu wrote:Hi All,
Can you please explain me how to implement inheritance in hibernate
Also is there any relation between inheritance and table per subclass.

Thanks,
Chiranjeevi



Hi Chiranjeevi,

Go through the link below

http://www.coderanch.com/t/439786/Object-Relational-Mapping/java/polymormsim-related-demos


 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a little tutorial I put together on mapping inheritance with Hibernate and JPA:

Mapping Inheritance with JPA

Table per class is one of three strategies available to you:





-Cameron McKenzie

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic