Using Hibernate and Spring to Build Multi-Tenant Java Apps
Hibernate is the predominant Java ORM, with rich support for multi-tenant apps. Hibernate supports several multi-tenancy methods, including tenant discriminator, which is the best for scaling. With Hibernate, you can start small on the Postgres database & scale out with the Citus extension to Postgres
Citus Data