File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes How & where & why Hibernate inheritance is uses full Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How & where & why Hibernate inheritance is uses full" Watch "How & where & why Hibernate inheritance is uses full" New topic
Author

How & where & why Hibernate inheritance is uses full

john robin
Greenhorn

Joined: Nov 29, 2012
Posts: 1
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How & where & why Hibernate inheritance is uses full
 
Similar Threads
polymormsim related demos
one to many Mapping @ Hibernate.
Inheritence in JPA
Many to many relationships (sql)
Single table inheritance