Inheritance « JPA « Java Tutorial






22.16.Inheritance
22.16.1.Persist subclass
22.16.2.Three Leve Entity Hierarchy
22.16.3.Set Discriminator Value In Subclass
22.16.4.Mark Discriminator Column For Entities In Hierarchy
22.16.5.Mark Abstract Entity With Inheritance
22.16.6.Inheritance Type TABLE_PER_CLASS
22.16.7.Inheritance Type JOINED
22.16.8.Discriminator Type: INTEGER
22.16.9.Discriminator Column And Discriminator Value








22.16.10.Change Inheritance Type
22.16.11.Add Properties In Abstract Entity
22.16.12.Adding Properties To SubClasses
22.16.13.Abstract Class As Mapped Superclass