Today, we published a new maintenance release of Hibernate ORM 6.2: 6.2.6.Final.
What’s new
This update includes several bugfixes and further stabilization as we approach the release of the next minor Hibernate version.
Bugfixes
Embeddable keys and property sorting
We have fixed a bug that caused the properties of composite keys to be in an unexpected order, causing possible problems with constraints (see HHH-16514)
Bytecode enhancement
We keep improving Hibernate’s bytecode enhancement support, this time we tackled several bugs:
-
Reading entities that extended a
@MappedSuperclass
declared in a different package did not work correctly (see HHH-16711) -
Bytecode enhancement caused a lazy
@ManyToOne
association targeting an Entity annotated with@Proxy(lazy = false)
to be eagerly loaded (see HHH-16794) -
Hibernate failed to update a one-to-one lazy association with
OptimisticLockType.DIRTY
and enabled bytecode enhancement (see HHH-16839) -
Bytecode enhancement led to a broken constructor for an embedded field declared as a generic in a
@MappedSuperclass
(see HHH-16832)
Subqueries and joins
We addressed a couple issues that affected Hibernate generated subqeries when using joins:
Polymorphic queries
We have fixed some bugs related to polymorphic queries:
Hibernate now uses the existing SQM copy logic to process entity polymorphism, keeping the behavior consistent with what was already in place for criteria queries.
|
Batch loading
In previous 6.2 versions the batch loading feature was improved several times. With this release we keep stabilizing it by fixing a couple issues:
There are more improvements and bugfixes included in this version. You can find the full list of changes here.
Conclusion
For additional details, see:
-
the User Guide
-
the Migration Guide
-
the release page.
Feedback, issues, ideas?
To get in touch, use the usual channels:
-
hibernate tag on Stack Overflow (usage questions)
-
User forum (usage questions, general feedback)
-
Issue tracker (bug reports, feature requests)
-
Mailing list (development-related discussions)