Today, we published a new maintenance release of Hibernate ORM 6.1: 6.1.4.Final.
What’s new
This release introduces a few minor improvements as well as bug fixes.
Improvements
Insert from Select
When an insert from select is executed
E.g.
session.createMutationQuery("insert into TestEntity(id, name) select 1, 'abc' from TestEntity e").executeUpdate();
if the identifier is assigned, an unnecessary multi-table insert is no longer generated (see HHH-15527).
Second Level Cache Key
Optimised 2nd level cache size for Redis cache (see HHH-15500).
Bugfixes
Insert from Select
Setting hibernate.default_schema
was causing an error when an insert from select was executed (see HHH-15517).
Enum and Query Parameters
A problem causing an exception when a query with an enum type parameter is executed has been fixed (see HHH-15498).
E.g.
@Entity
class Event {
...
@Enumerated(EnumType.STRING)
private Type type;
}
enum Type {
INDOOR, OUTDOOR
}
session.createMutationQuery("DELETE FROM Event WHERE (:type IS NULL OR type = :type)");
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)