Skip to content

Files

Latest commit

 

History

History

HibernateSpringBootTablePerClassInheritance

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

JPA Inheritance - TABLE_PER_CLASS

Description: This application is a sample of JPA Table-per-class inheritance strategy (TABLE_PER_CLASS)

Key points:

  • this inheritance strategy doesn't allow the usage of the IDENTITY generator
  • this inheritance strategy can be employed via @Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
  • all the classes in an inheritance hierarchy (a.k.a., subclasses) are represented via individual tables
  • each subclass-table stores the columns inherited from the superclass-table (base class)

If you need a deep dive into the performance recipes exposed in this repository then I am sure that you will love my book "Spring Boot Persistence Best Practices"If you need a hand of tips and illustrations of 100+ Java persistence performance issues then "Java Persistence Performance Illustrated Guide" is for you.