[hibernate/hibernate-orm] e53713: remove order-by list from the query plan cache key
by Gavin King
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: e5371386a4517885f4754c5bdbde468dd4c2601d
https://github.com/hibernate/hibernate-orm/commit/e5371386a4517885f4754c5...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2023-07-18 (Tue, 18 Jul 2023)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/query/sqm/internal/QuerySqmImpl.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/internal/SqmInterpretationsKey.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/internal/SqmSelectionQueryImpl.java
M hibernate-core/src/test/java/org/hibernate/orm/test/query/order/OrderTest.java
Log Message:
-----------
remove order-by list from the query plan cache key
Roll back my always-intended-to-be-temporary bandaid to allow
caching of the query plan after calls to setOrder(). Instead,
just disable caching of the query plan. When the query plan
cache can handle caching of criteria queries, change to use
that strategy instead.
1 year, 7 months
[hibernate/hibernate-orm] 4d7937: HHH-16812 Test reproducing the issue
by Andrea Boriero
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 4d79376be9b39ce34df3e56941dbeb62a45b031a
https://github.com/hibernate/hibernate-orm/commit/4d79376be9b39ce34df3e56...
Author: gtoison <guillaume.toison(a)tobam.fr>
Date: 2023-07-18 (Tue, 18 Jul 2023)
Changed paths:
A hibernate-core/src/test/java/org/hibernate/orm/test/embeddable/EmbeddableWithParentWithInheritanceTest.java
Log Message:
-----------
HHH-16812 Test reproducing the issue
It seems that when trying to call the Smell.setCheese()setter and when
the entity is an uninitialized Food proxy there’s a ClassCastException
(maybe the proxy should be narrowed to the actual class of the entity)
and then it tries to build an exception but to do that it needs to
initialize the entity and that fails again with the same problem.
Building the exception fails because PropertySetterAccessException tries
to call the toString method of the uninitialized proxy.
Commit: 2c2fd9df7594c5d59495a1b5d410ec03f52d9ac5
https://github.com/hibernate/hibernate-orm/commit/2c2fd9df7594c5d59495a1b...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2023-07-18 (Tue, 18 Jul 2023)
Changed paths:
A hibernate-core/src/test/java/org/hibernate/orm/test/embeddable/EmbeddableWithParentWithInheritance2Test.java
M hibernate-core/src/test/java/org/hibernate/orm/test/embeddable/EmbeddableWithParentWithInheritanceTest.java
Log Message:
-----------
HHH-16812 add test for issue
Commit: e2ec3cd3e7fac1ccd79373230cd6dbec8608ddee
https://github.com/hibernate/hibernate-orm/commit/e2ec3cd3e7fac1ccd793732...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2023-07-18 (Tue, 18 Jul 2023)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/PropertySetterAccessException.java
M hibernate-core/src/main/java/org/hibernate/engine/internal/ManagedTypeHelper.java
M hibernate-core/src/main/java/org/hibernate/sql/results/graph/embeddable/AbstractEmbeddableInitializer.java
Log Message:
-----------
HHH-16812 StackOverflowError an embeddable's @Parent is a subclass in an inheritance tree
Compare: https://github.com/hibernate/hibernate-orm/compare/58c10758e0e9...e2ec3cd...
1 year, 7 months
[hibernate/hibernate-orm] d5819c: HHH-16812 Test reproducing the issue
by Andrea Boriero
Branch: refs/heads/6.2
Home: https://github.com/hibernate/hibernate-orm
Commit: d5819c71f3bacaf51ff79a0d5ccb8048ee118f19
https://github.com/hibernate/hibernate-orm/commit/d5819c71f3bacaf51ff79a0...
Author: gtoison <guillaume.toison(a)tobam.fr>
Date: 2023-07-18 (Tue, 18 Jul 2023)
Changed paths:
A hibernate-core/src/test/java/org/hibernate/orm/test/embeddable/EmbeddableWithParentWithInheritanceTest.java
Log Message:
-----------
HHH-16812 Test reproducing the issue
It seems that when trying to call the Smell.setCheese()setter and when
the entity is an uninitialized Food proxy there’s a ClassCastException
(maybe the proxy should be narrowed to the actual class of the entity)
and then it tries to build an exception but to do that it needs to
initialize the entity and that fails again with the same problem.
Building the exception fails because PropertySetterAccessException tries
to call the toString method of the uninitialized proxy.
Commit: d69138f1b935f84d1e1b4cebfbed2e4040093fac
https://github.com/hibernate/hibernate-orm/commit/d69138f1b935f84d1e1b4ce...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2023-07-18 (Tue, 18 Jul 2023)
Changed paths:
A hibernate-core/src/test/java/org/hibernate/orm/test/embeddable/EmbeddableWithParentWithInheritance2Test.java
M hibernate-core/src/test/java/org/hibernate/orm/test/embeddable/EmbeddableWithParentWithInheritanceTest.java
Log Message:
-----------
HHH-16812 add test for issue
Commit: 147f01ac0b5f3ed264287331e398675f0e746fad
https://github.com/hibernate/hibernate-orm/commit/147f01ac0b5f3ed26428733...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2023-07-18 (Tue, 18 Jul 2023)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/PropertySetterAccessException.java
M hibernate-core/src/main/java/org/hibernate/engine/internal/ManagedTypeHelper.java
M hibernate-core/src/main/java/org/hibernate/sql/results/graph/embeddable/AbstractEmbeddableInitializer.java
Log Message:
-----------
HHH-16812 StackOverflowError an embeddable's @Parent is a subclass in an inheritance tree
Compare: https://github.com/hibernate/hibernate-orm/compare/69f3cfe837ac...147f01a...
1 year, 7 months