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

Table per hierarchy with Annotation

Let us understand about Table Per Hierarchy with Annotation We have already discussed Table per hierarchy with xml. Please go through Table per hierarchy with xml article before going through the same using annotation. Let’s create hibernate project using Annotation Step 1 Create hibernate project Please refer Hibernate setup in eclipse article on how to […]

Share this article on
< Previous Next >