Inheritance in Hibernate overview

Let us understand about Inheritance in Hibernate Inheritance is an object oriented feature which provides the power of re-usability. The same concept of re-usability is provided in Hibernate as well. It is one of the advantages of Hibernate when compared with JDBC. Assume we have Parent and Child classes, we know that Child class object […]

Share this article on

Table Per Hierarchy with XML

Let us understand about Table Per Hierarchy with XML In this approach, as the name suggests the entire hierarchy is mapped to a single table. I.e. All attributes of all the classes in the hierarchy are stored in a single table. A discriminator column is used to distinguish different classes. Null values will be stored […]

Share this article on
< Previous Next >