Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How & where & why Hibernate inheritance is uses full

 
john robin
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I knew and understood Hibernate inheritance concept, I also worked on 2 enterprise Media domain projects which uses Hibernate orm tool as DAO layer to interact with database,

Can anyone please clarify My doubt How & where & why Hibernate inheritance is uses full, in real time projects because the projects where I worked we have used Hibernate Associations like one to many, many to one, many to many to save and fetch data, and other hibernate concepts, never used Hibernate inheritance concept like Table per sub class, though we have used Oracle db, which has lot of table Parent-child relationship, through foreign key reference.

My point of doubt is How Inheritance specifically used in the context of Parent-child relationship using foreign key, do we use the Inheritance Table per sub class or Table Per concrete strategy to save and fetch the data? or Hibernate one to many or other hibernate mapping to save and fetch the data.

I assume through Hibernate associations like to one to many mapping we fetch and save the date, how Hibernate Inheritance particularly used under which scenario, please explain me in detail, with possible examples .

Thanks in Advance for everyone who has shown interest to this question.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic