This is a simple example which attempts to demonstrate the discriminator field based multi-tenancy problem in hibernate (5.x) using spring-boot (2.x).
This application is broken because of hiberante bug and may not work as expected.
Hibernate Issue: https://hibernate.atlassian.net/browse/HHH-6054
Use this following repository which workarounds this problem using different approach. https://github.com/ramsrib/multi-tenant-app-demo