Branch: refs/heads/main
Home:
https://github.com/hibernate/hibernate-orm
Commit: 2597db20341ea5d9313e4a0d42d2f2ab5c4eab98
https://github.com/hibernate/hibernate-orm/commit/2597db20341ea5d9313e4a0...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2025-12-30 (Tue, 30 Dec 2025)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/query/spi/AbstractSelectionQuery.java
Log Message:
-----------
HHH-20006 uniqueElement() did not have a self-consistent definition of "same"
Really, getSingleResult() is saying there should be a single element in
getResultList(). If that's not the case, you should use 'select distinct'.
That said, we might want a way to recover the old behavior (H5, apparently)
of making things distinct in memory according to equals(). Though, actually,
I believe you can just use a ResultListTransformer for that. Perhaps we
should just add a built-in one for migration purposes.
Commit: 3bd403a1052731f0b91cb00d95ce0e13887d7fb2
https://github.com/hibernate/hibernate-orm/commit/3bd403a1052731f0b91cb00...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2025-12-30 (Tue, 30 Dec 2025)
Changed paths:
M
hibernate-core/src/main/java/org/hibernate/loader/ast/internal/SingleIdEntityLoaderProvidedQueryImpl.java
M hibernate-core/src/main/java/org/hibernate/query/ResultListTransformer.java
Log Message:
-----------
introduce uniqueResultTransformer()
Compare:
https://github.com/hibernate/hibernate-orm/compare/5890b8c91952...3bd403a...
To unsubscribe from these emails, change your notification settings at
https://github.com/hibernate/hibernate-orm/settings/notifications