[hibernate/hibernate-orm] 1320db: eliminate unnecessary use of raw types in QueryPro...
by Gavin King
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 1320db3f3bd20d5526e7fb33ca34bc4b683d84c5
https://github.com/hibernate/hibernate-orm/commit/1320db3f3bd20d5526e7fb3...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2025-01-31 (Fri, 31 Jan 2025)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/Session.java
M hibernate-core/src/main/java/org/hibernate/engine/spi/SessionDelegatorBaseImpl.java
M hibernate-core/src/main/java/org/hibernate/engine/spi/SessionLazyDelegator.java
M hibernate-core/src/main/java/org/hibernate/engine/spi/SharedSessionDelegatorBaseImpl.java
M hibernate-core/src/main/java/org/hibernate/internal/AbstractSharedSessionContract.java
M hibernate-core/src/main/java/org/hibernate/query/QueryProducer.java
M hibernate-core/src/main/java/org/hibernate/query/spi/QueryProducerImplementor.java
Log Message:
-----------
eliminate unnecessary use of raw types in QueryProducer
Commit: b5155600145a55cc7b52a80be8168c5f2f319e44
https://github.com/hibernate/hibernate-orm/commit/b5155600145a55cc7b52a80...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2025-01-31 (Fri, 31 Jan 2025)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/engine/internal/Cascade.java
M hibernate-core/src/main/java/org/hibernate/query/results/internal/ResultSetMappingImpl.java
M hibernate-core/src/main/java/org/hibernate/query/spi/QueryOptionsAdapter.java
Log Message:
-----------
very minor code changes
Commit: 7b56e181cc397828dcec4230ad4b5db62f2a7526
https://github.com/hibernate/hibernate-orm/commit/7b56e181cc397828dcec423...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2025-01-31 (Fri, 31 Jan 2025)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/loader/ast/internal/AbstractMultiIdEntityLoader.java
M hibernate-core/src/main/java/org/hibernate/loader/ast/internal/MultiIdEntityLoaderArrayParam.java
M hibernate-core/src/main/java/org/hibernate/result/internal/OutputsImpl.java
M hibernate-core/src/main/java/org/hibernate/sql/exec/internal/StandardJdbcMutationExecutor.java
M hibernate-core/src/main/java/org/hibernate/sql/results/jdbc/internal/DeferredResultSetAccess.java
Log Message:
-----------
various misc code cleanups
Compare: https://github.com/hibernate/hibernate-orm/compare/1471cc4ee8e9...7b56e18...
To unsubscribe from these emails, change your notification settings at https://github.com/hibernate/hibernate-orm/settings/notifications
3 months, 1 week
[hibernate/hibernate-orm] 6a3ef4: HHH-19034 Fix use of findCompatibleFetchJoin
by DavideD
Branch: refs/heads/6.6
Home: https://github.com/hibernate/hibernate-orm
Commit: 6a3ef4bb75edf11366db281b5b3224ffa9e80087
https://github.com/hibernate/hibernate-orm/commit/6a3ef4bb75edf11366db281...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2025-01-31 (Fri, 31 Jan 2025)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/domain/AbstractSqmFrom.java
Log Message:
-----------
HHH-19034 Fix use of findCompatibleFetchJoin
The problem was that you had a different SQL query
depending on the order the fetch and join operations were
created when defining a criteria query.
For example:
```
// Example 1:
Root<Book> from = criteriaQuery.from( Book.class );
Fetch<Object, Object> fetch = from.fetch( "authors" );
Join<Object, Object> join = from.join( "authors" );
```
it was different than
```
// Example 2:
Root<Book> from = criteriaQuery.from( Book.class );
Join<Object, Object> join = from.join( "authors" );
Fetch<Object, Object> fetch = from.fetch( "authors" );
```
In the first example, `fetch` and `join` were exactly the
same object, causing issues if the association `authors` appeared
in the `where` clause. For example:
```
criteriaQuery.where( cb.equal( join.get( "id" ), 2L ) );
```
Note that now we always rung an extra join even when not necessary.
But this is consistent with what happen with HQL, and we can figure
out how to add this improvement in a different issue.
Commit: 879c56b4a2ab6bccd53caab1e28b00504a5752ee
https://github.com/hibernate/hibernate-orm/commit/879c56b4a2ab6bccd53caab...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2025-01-31 (Fri, 31 Jan 2025)
Changed paths:
A hibernate-core/src/test/java/org/hibernate/orm/test/join/JoinAndFetchWithCriteriaSelectionQueryTest.java
Log Message:
-----------
HHH-19034 Test fetch and join order for Criteria
Compare: https://github.com/hibernate/hibernate-orm/compare/ff8ebd5931f9...879c56b...
To unsubscribe from these emails, change your notification settings at https://github.com/hibernate/hibernate-orm/settings/notifications
3 months, 1 week
[hibernate/hibernate-orm] ebf06c: HHH-19034 Fix use of findCompatibleFetchJoin
by DavideD
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: ebf06cc854443daeebe8b546cf4d9a869d691bf1
https://github.com/hibernate/hibernate-orm/commit/ebf06cc854443daeebe8b54...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2025-01-31 (Fri, 31 Jan 2025)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/domain/AbstractSqmFrom.java
Log Message:
-----------
HHH-19034 Fix use of findCompatibleFetchJoin
The problem was that you had a different SQL query
depending on the order the fetch and join operations were
created when defining a criteria query.
For example:
```
// Example 1:
Root<Book> from = criteriaQuery.from( Book.class );
Fetch<Object, Object> fetch = from.fetch( "authors" );
Join<Object, Object> join = from.join( "authors" );
```
it was different than
```
// Example 2:
Root<Book> from = criteriaQuery.from( Book.class );
Join<Object, Object> join = from.join( "authors" );
Fetch<Object, Object> fetch = from.fetch( "authors" );
```
In the first example, `fetch` and `join` were exactly the
same object, causing issues if the association `authors` appeared
in the `where` clause. For example:
```
criteriaQuery.where( cb.equal( join.get( "id" ), 2L ) );
```
Note that now we always rung an extra join even when not necessary.
But this is consistent with what happen with HQL, and we can figure
out how to add this improvement in a different issue.
Commit: 92de056ce6099bab1c975830930686daf29722bb
https://github.com/hibernate/hibernate-orm/commit/92de056ce6099bab1c97583...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2025-01-31 (Fri, 31 Jan 2025)
Changed paths:
A hibernate-core/src/test/java/org/hibernate/orm/test/join/JoinAndFetchWithCriteriaSelectionQueryTest.java
Log Message:
-----------
HHH-19034 Test fetch and join order for Criteria
Compare: https://github.com/hibernate/hibernate-orm/compare/1022e9ceeba5...92de056...
To unsubscribe from these emails, change your notification settings at https://github.com/hibernate/hibernate-orm/settings/notifications
3 months, 1 week