Sunday, March 1, 2015
Inheritance in Hibernate
Inheritance in Hibernate: Java is object oriented language and inheritance is one of main functionalities of java. Relational model can implement "is a" and "has a" relationship. Relational model supports only “has a” relationship between two entities. Hibernate can help you map such Objects with relational tables. But you need to choose certain mapping strategy based on your needs. There are three inheritance mapping strategies defined in the hibernate.One table per one concrete class (TABLE_PER_CLASS)One table per all hierarchical classes...