Today, we published a new maintenance release of Hibernate ORM 6.1: 6.1.7.Final.
What’s new
This release includes some important bug fixes.
Bugfixes
OneToMany and @Where annotation
We have fixed a bug causing an EntityNotFoundException
to be thrown when EntityManager#refresh()
is called for a parent entity having a child annotated with @Where
(see HHH-15902)
Embeddables
We have fixed few issues related to embeddables:
-
a
PropertyAccessException
was thrown when deleting an entity having an embeddable with a collection attribute (see HHH-16007) -
an
ArrayIndexOutOfBoundsException
was thrown when loading an entity having an Embeddable with more attributes than the parent that was causing (see HHH-15778) -
an
IllegalArgumentException
was thrown when deleting an entity having an embeddable with a collection attribute annotated withorphanRemoval=true
(see HHH-15864) -
a
NullPointException
was thrown when the model contains a nested embeddable with a non-optional association (see HHH-15794) -
a
ClassCastException
was thrown when a not nullableOneToMany
association references an entity with an embedded id (see HHH-15866 see HHH-15865) -
an
IllegalArgumentException
was thrown when retrieving by identifier entities extending aMappedSuperclass
class with an embeddable id (see HHH-16070) -
an
HibernateException
was thrown when querying an entity having an embeddable with a collection attribute with cascade delete orphan (see HHH-16117)
Bytecode enhancement and dirty checking
We have fixed a bug causing the execution of unnecessary SQL update statements when setting a property to its current value (see HHH-16049)
Polymorphic Queries
We have fixed a bug causing an HibernateException
when a polymorphic query contains a join (see HHH-15944)
Batching
We have fixed a couple of bugs affecting batch fetching:
You can find the full list of changes in this version 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)