Inheritance support

  • Inheritance is one of the key concepts in Java, and it’s used in most domain models

  • SQL doesn’t support this kind of relationship, JPA implementation maps it to a supported concept

Single table inheritance strategy

  • Single Table inheritance: the default strategy used in this technical preview release

  • Single Table inheritance: the simplest and typically the best performance when doing queries

  • Single Database Table: will be used to store every attribute of every class in the hierarchy

  • Discriminator Column: used to determine which class the row belongs to, each class in the hierarchy defines its own unique discriminator value

Entity inheritance model example


entity inheritance model example

Single table inheritance example


single table inheritance example