Post #7372 1.14K May 22, 2024, 16:04 UTC π Implement your primary key as a Record using an IdClass https://thorben-janssen.com/idclass-record/ Thorben Janssen Implement your primary key as a Record using an IdClass - Thorben Janssen Records are Java's simplest and best representation of a primary key. Using Hibernate, you can use a record as an IdClass to map complex primary keys. π 1