Tag: hibernate inheritance mapping
Inheritance Mapping In Hibernate – Introduction
by  Java4s | 25 Comments
  [ Ask Question ]
Compared to JDBC we have one main advantage in hibernate, which is hibernate inheritance. Suppose if we have base and derived classes, now if we save derived(sub) class object, base class object will also be stored into the database….
Hibernate Inheritance: Table Per Class Hierarchy
by  Java4s | 35 Comments
  [ Ask Question ]
Here is the explanation and one example on hibernate table per class hierarchy, consider we have base class named Payment and 2 derived classes like CreditCard, Cheque If we save the derived class object like CreditCard or Cheque then…