Hibernate Inheritance Strategies

Hibernate supports following strategies to support Inheritance mappings in database: Single Table or Table per class-hierarchy (InheritanceType.SINGLE_TABLE) Joined or Table per subclass (InheritanceType.JOINED) Table per class (InheritanceType.TABLE_PER_CLASS)   Single Table strategy(aka Table per class-hierarchy) In this strategy, a single table is created for each class hierarchy. So, if we have a base class “Book” and […]