Blog:

Hibernate Schema-based Multi-Tenancy using StatementInspector

When using schema-based multi-tenancy with Hibernate, a simple way to define the schema is using a MultiTenantConnectionProvider where we call SET SCHEMA on the connection. However, this approach does not work with certain databases like MS SQL.

When using schema-based multi-tenancy with Hibernate, a simple way to define the schema is using a MultiTenantConnectionProvider where we call SET .....

08.01.2024

Java 16 Records with JPA and jOOQ

The new Java version 16 includes a new feature: Records

The new Java version 16 includes a new feature: Records.....

20.04.2021

Java Persistence Done Right

When it comes to accessing relational databases with Java, people usually think of two options: SQL or ORM

When it comes to accessing relational databases with Java, people usually think of two options: SQL or ORM.....

07.06.2019

How to JOIN two Entities without Mapped Relationship

Often you don’t want to map all relationships in an entity model (a blog post about this topic in detail will follow).

Often you don’t want to map all relationships in an entity model (a blog post about this topic in detail will follow)......

29.05.2018

Inheritance in JPA

Relational databases have tables and columns and object-oriented programming languages have classes and fields but they also provide inheritance.

Relational databases have tables and columns and object-oriented programming languages have classes and fields but they also provide inheritance......

22.05.2018

Should you use Enums with JPA?

With JPA it’s possible to map Java enums to columns in a database table using the Enumerated annotation.

With JPA it’s possible to map Java enums to columns in a database table using the Enumerated annotation......

02.04.2018