Today, we published a new maintenance release of Hibernate ORM 6.2: 6.2.4.Final.
This release includes several bug fixes and small performance improvements.
Support for JPA static metamodel generation in the Hibernate Gradle plugin was dropped. You can find more details here.
We have fixed some issues related to the handling of entity associations and
We now avoid joining tables in more scenarios and should only introduce
joinswhen really needed (see HHH-16691).
An error was causing a result multiplication when both
FetchMode.JOINand batching were used for retrieving
@OneToManyassociated items (see HHH-16570).
We now throw an appropriate error when an entity join that is not a
cross joindoesn’t define an on clause (see HHH-16495).
A lazy association in a
@Cacheableentity was already retrieved as initialized (see HHH-16613).
We have fixed several bugs related to query caches, specifically regarding the key used for the cache:
The query cache key was not correctly serializable when working with an enabled
@Filterparameters were not included in the query cache key causing some inconsistent results when using different values (see HHH-16617).
Query parameters were not always processed in the same order when generating the query cache key, causing sporadic cache misses expecially with a high number of parameters and criteria queries (see HHH-16594).
We have a couple bugs related to
Map type associations:
The latest Hibernate updates introduced a couple cases triggering a
NullPointerException that were fixed:
There are many more improvements and bugfixes included in this version. You can find the full list of changes here.