11352 Commits

Author SHA1 Message Date
Marco Belladelli
76027709b1
HHH-17730 Add test for issue 2024-02-20 14:11:25 +01:00
Ken Schosinsky
fff89542a6 HHH-17742 Fix race condition in ConcreteSqmSelectQueryPlan 2024-02-19 14:16:59 +01:00
Ken Schosinsky
9fc1ba259f HHH-17742 Test for race condition in ConcreteSqmSelectQueryPlan
Race condition occurs when two or more concurrent reach the synchronized
block in ConcreteSqmSelectQueryPlan#withCacheableSqmInterpretation. The
latter ones will see the cacheableSqmInterpretation by the first one,
but don't check whether it is compatible
(jdbcSelect.dependsOnParameterBindings(), jdbcSelect.isCompatibleWith).

On MySQL this can cause "limit null,1" to be rendered if the first query
has both offset and limit, the latter ones only a limit.
2024-02-19 14:16:59 +01:00
Marco Belladelli
a4cbe2f95a
HHH-17096 Always initialize table group for subtype treated joins 2024-02-16 16:30:21 +01:00
Marco Belladelli
c6c9671385
HHH-17096 Add test for issue 2024-02-16 16:30:17 +01:00
Marco Belladelli
2e9e472bd7
HHH-17508 Fix using union queries as CTE in criteria 2024-02-16 11:58:14 +01:00
Marco Belladelli
584518d609
HHH-17508 Add test for issue 2024-02-16 11:58:14 +01:00
Marco Belladelli
08db8487b0
HHH-17701 Use relational java type when resolving mapping expressibles 2024-02-16 11:55:21 +01:00
Marco Belladelli
6b56b7e737
HHH-17701 Add test for issue 2024-02-16 11:55:21 +01:00
Marco Belladelli
46dffe3336
HHH-17695 Skip rendering null nested JSON aggregate embeddables 2024-02-16 10:47:01 +01:00
Marco Belladelli
d865ec9e36
HHH-17695 Add test for issue 2024-02-16 10:47:00 +01:00
Gavin King
d234b4eea9 HHH-14821 consistent use of exception types
(and exception message formats)
2024-02-09 13:56:19 +01:00
Yanming Zhou
d6390ce79f HHH-17719 Supports boolean as return type of mutation query method 2024-02-09 13:56:19 +01:00
Gavin King
8346b7132d more blurb about finder/query methods 2024-02-09 13:56:19 +01:00
Gavin King
594fd2f4aa add missing package-info 2024-02-09 13:56:19 +01:00
Gavin King
ee33347786 HHH-17716 implement JtaTransactionAdapterTransactionManagerImpl.setTimeOut() 2024-02-09 13:56:19 +01:00
Gavin King
d36131eff5 big code example in package doc for org.hibernate.annotations.processing 2024-02-09 13:56:19 +01:00
Gavin King
da04eb7736 improve format of error messages relating to getters/setters 2024-02-09 13:56:19 +01:00
Gavin King
dfdf49dfa6 further improvements to jdoc of @Find and @HQL 2024-02-09 13:56:19 +01:00
Gavin King
5c0486f840 clarify use of Order and Page with @Find
[It's allowed!]
2024-02-09 13:56:19 +01:00
Gavin King
9a8f02bd21 add some missing info to javadoc for @Find, @HQL, @SQL 2024-02-09 13:56:19 +01:00
Gavin King
2edd192b8d improve reporting of connection errors 2024-02-09 13:56:19 +01:00
Gavin King
7463ce89e3 HHH-17637 improve an error message 2024-02-09 13:56:19 +01:00
Andrea Boriero
e98503a807
HHH-17704 Query using detached Proxy as parameter fails with LazyInitializationException 2024-02-08 12:06:51 +01:00
Andrea Boriero
d35cd46995
HHH-17704 Add test for issue 2024-02-08 12:06:47 +01:00
Andrea Boriero
6057d99b79
HHH-16454 PostgreSQL ILIKE Keyword is considered a column name when deducing alias injection points 2024-02-08 12:05:42 +01:00
Andrea Boriero
a2d3315067
HHH-16454 Add test for issue 2024-02-08 12:03:02 +01:00
Marco Belladelli
6138c76c72
HHH-17693 Fix typecheck assertions for converted properties
Also introduce a custom `DurationJdbcType`, mainly for validation purposes.
2024-02-08 09:40:47 +01:00
Marco Belladelli
658e9bc215
HHH-17693 Add test for issue 2024-02-08 09:39:08 +01:00
Andrea Boriero
e9946dbb1c HHH-16974 IllegalStateException Unsupported tuple comparison combination 2024-02-07 11:18:14 +01:00
Andrea Boriero
e7f9875dbe HHH-16974 Add test for issue 2024-02-07 11:18:14 +01:00
Yoann Rodière
0403d12ea9 Move setting of net.bytebuddy.experimental to the Jenkinsfile
The hope is that whenever we add a new JDK version to test,
we'll notice this setting, will try to remove it and upgrade bytebuddy
if necessary. This would avoid mess-ups like the one that caused
https://github.com/hibernate/hibernate-orm/pull/7790
2024-02-07 11:12:11 +01:00
Marco Belladelli
9f3676d690 HHH-17688 Make statement release more consistent in mutation delegates 2024-02-07 10:16:02 +01:00
Marco Belladelli
02fa42d90c HHH-17688 Add test for issue 2024-02-07 10:16:02 +01:00
Marco Belladelli
0a41fa41f5
HHH-17705 Load default bytecode provider using the correct ClassLoader 2024-02-05 17:18:04 +01:00
Christian Beikov
2661e5cd18 HHH-17662 Replace JdbcTypeConstructor uses for arrays with uniform resolve method 2024-02-05 14:34:02 +01:00
Stephanie Miller
5d348fc723 HHH-17662 Equals for ArrayJdbcType
JdbcTypes are put into a map and deduplicated there. Without an equals the ArrayJdbcType leaks because each resolution is created new.
2024-02-05 14:34:02 +01:00
Marco Belladelli
439fac712b Fix ORA-21700 in SetAsBasicTest 2024-02-02 12:19:42 +01:00
Andrea Boriero
5ae21a10de HHH-17320 A basic attribute of type TreeMap causes a JdbcTypeRecommendationException 2024-02-01 17:56:34 +01:00
Andrea Boriero
7be2362f29 HHH-17320 Add test for issue 2024-02-01 17:56:34 +01:00
Andrea Boriero
b78159499e HHH-17687 AttributeConverter, query does not use converter to convert 'null' fields 2024-02-01 17:54:18 +01:00
Andrea Boriero
e4f5926bce HHH-17687 Add test for issue 2024-02-01 17:54:18 +01:00
Marco Belladelli
24d25cedf8 HHH-17686 Avoid internal use of pruned expression for named references 2024-01-31 19:26:17 +01:00
Marco Belladelli
702caf471c HHH-17686 Add test for issue 2024-01-31 19:26:17 +01:00
Christian Beikov
da21ca2e80 HHH-17689 Cache SQL statement for unique key lookup 2024-01-31 16:27:19 +01:00
Marco Belladelli
ff0b535435 HHH-17594 HHH-17665 Fix proxy narrowing for delayed subtype entities 2024-01-30 19:02:05 +01:00
Marco Belladelli
652da4205f HHH-17594 HHH-17665 Add test for issue 2024-01-30 19:02:05 +01:00
Andrea Boriero
3844a34760 HHH-17587 Setting to null a property from a @SecondaryTable and @DynamicUpdate deletes the whole entry from database 2024-01-30 19:01:25 +01:00
Andrea Boriero
74f018182e HHH-17587 Add test for issue 2024-01-30 19:01:25 +01:00
Marco Belladelli
18b1cea796 HHH-17666 Fix trunc function argument type resolver 2024-01-30 10:38:12 +01:00