Branch: refs/heads/main
Home:
https://github.com/hibernate/hibernate-orm
Commit: 579569704057a184bc02bcd949086038a0af2657
https://github.com/hibernate/hibernate-orm/commit/579569704057a184bc02bcd...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2025-04-25 (Fri, 25 Apr 2025)
Changed paths:
M
hibernate-core/src/main/java/org/hibernate/query/specification/internal/MutationSpecificationImpl.java
Log Message:
-----------
HHH-19386 MutationSpecificationImpl#getResultType must return null
Returning `Void.class` causes the validation in `QuerySqmImpl`
to fail with the error:
```
org.hibernate.query.IllegalQueryOperationException: Result type given for a non-SELECT
Query [<criteria>]
```
when the query is executed like in the example:
```java
MutationSpecification mutationSpecification = MutationSpecification.create( ... )
session
.createQuery(mutationSpecification.reference())
.executeUpdate();
```
Commit: 6dc2e7b4610389c9b2c3555224b393de2fed187e
https://github.com/hibernate/hibernate-orm/commit/6dc2e7b4610389c9b2c3555...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2025-04-25 (Fri, 25 Apr 2025)
Changed paths:
M
hibernate-core/src/test/java/org/hibernate/orm/test/query/dynamic/SimpleQuerySpecificationTests.java
Log Message:
-----------
HHH-19386 Add test case
Compare:
https://github.com/hibernate/hibernate-orm/compare/3082549ae39d...6dc2e7b...
To unsubscribe from these emails, change your notification settings at
https://github.com/hibernate/hibernate-orm/settings/notifications