Gavin King
1180be0a0f
HHH-16931 add SelectionQuery.getResultCount()
2024-02-19 22:56:18 +01:00
Christian Beikov
7f14b2cbf8
HHH-16048 Handle integer division emulation also for TiDB
2024-02-19 14:38:04 +01:00
LLEFEVRE
02c6531fcb
HHH-15756 Table Value Constructor (INSERT, FROM column aliasing at table alias, CTE)
2024-02-19 14:22:42 +01:00
Ken Schosinsky
3bda3adc4f
HHH-17742 Fix race condition in ConcreteSqmSelectQueryPlan
2024-02-19 14:15:50 +01:00
Ken Schosinsky
a3ca11a363
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:15:50 +01:00
Gavin King
27bf0b8523
make HqlInterpretation generic to eliminate warnings / unchecked casts
...
and delete a deprecated method of an @Incubating API
2024-02-19 12:49:14 +01:00
Gavin King
e4632107d7
improve error messages when association targets non-entity type
2024-02-19 12:40:54 +01:00
Marco Belladelli
34374c0c70
HHH-17727 Avoid name uses for subtypes when selecting discriminator only
2024-02-19 11:46:59 +01:00
Marco Belladelli
dfb56c2f36
HHH-17727 Add test for issue
2024-02-19 11:46:59 +01:00
LLEFEVRE
778e5b1214
HHH-15756 Table Value Constructor (INSERT, FROM column aliasing at table alias, CTE)
2024-02-19 11:32:31 +01:00
LLEFEVRE
7c400e10bb
HHH-15756 Table Value Constructor (INSERT, FROM column aliasing at table alias, CTE)
2024-02-19 11:32:31 +01:00
Gavin King
777dede7da
HHH-17748 accept abbreviated enum value names in HQL 'when' clause
2024-02-18 23:28:56 +01:00
Gavin King
bfda1c6142
fix typo in javadoc
2024-02-18 19:53:57 +01:00
Gavin King
2558f9843a
HHH-17746 update tests to use streamlined API
2024-02-17 12:42:09 +01:00
Gavin King
e732cddb09
HHH-17746 add typed setProperty() methods to Configuration
...
and fix handling of DEFAULT_NULL_ORDERING
2024-02-17 12:42:09 +01:00
Gavin King
3769d4c233
use requiresService() much more consistently
...
we should usually avoid the use of getService() unless
there is an explicit null test on the client side
2024-02-16 23:18:30 +01:00
Gavin King
f1e099b8e8
HHH-17745 @HQL methods accepting embeddables
...
and replace usages of getJavaType().getTypeName(), since
using getTypeName() directly is much more freindly to the
annotation processor (as well as less verbose)
2024-02-16 21:08:49 +01:00
Marco Belladelli
eb11676479
HHH-17096 Always initialize table group for subtype treated joins
2024-02-16 16:34:45 +01:00
Marco Belladelli
7eb8aac96d
HHH-17096 Add test for issue
2024-02-16 16:34:45 +01:00
Gavin King
d7fe31643a
HHH-16048 add 'hibernate.query.hql.portable_integer_division'
...
consistent interpretation of division on MySQL and Oracle
2024-02-16 16:23:35 +01:00
qinxi
a97b7ba611
HHH-17717 Add semicolon(`;`) to HQL_SEPARATORS
2024-02-16 13:35:17 +01:00
Marco Belladelli
5309d9d63b
HHH-17508 Fix using union queries as CTE in criteria
2024-02-16 11:58:22 +01:00
Marco Belladelli
a0294c31fe
HHH-17508 Add test for issue
2024-02-16 11:58:22 +01:00
Marco Belladelli
8a8099c3fd
HHH-17701 Use relational java type when resolving mapping expressibles
2024-02-16 11:55:52 +01:00
Marco Belladelli
d5d9f5766f
HHH-17701 Add test for issue
2024-02-16 11:55:52 +01:00
Marco Belladelli
b91a7fe9fe
HHH-17695 Skip rendering null nested JSON aggregate embeddables
2024-02-16 10:47:27 +01:00
Marco Belladelli
734bd775bf
HHH-17695 Add test for issue
2024-02-16 10:47:27 +01:00
LLEFEVRE
464d3a82fd
HHH-15753 GROUP BY ALIAS support in 23c
2024-02-16 10:46:57 +01:00
Jan Schatteman
c8234fc493
HHH-12565 - Add some additional tests
...
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2024-02-15 13:40:15 +01:00
Gavin King
8dd0ef5198
improve error messages coming from SqmPathRegistryImpl
...
and missing add javadoc to AliasCollisionException
2024-02-14 12:55:43 +01:00
Gavin King
e4a998cbe7
add a TODO
2024-02-14 12:55:43 +01:00
Gavin King
914227de93
HHH-16463 fix use of @PrimaryKeyJoinColumn with @MapsId
...
supporting this mapping is required by JPA
2024-02-14 11:34:55 +01:00
Gavin King
2c85e5d190
HHH-16522 add test for fixed bug
2024-02-14 01:12:38 +01:00
Gavin King
d57e09c7e6
add javadoc to Session regarding proxy objects
2024-02-13 17:30:02 +01:00
Gavin King
97099c0280
better handling of instantiation for @HQL methods
2024-02-12 20:53:09 +01:00
Gavin King
d93463c060
document record instantiation for @HQL methods
2024-02-12 00:16:06 +01:00
Gavin King
e5a994bfa1
fix typechecking of primitives in instantiations for query methods
2024-02-12 00:16:06 +01:00
Gavin King
70705f3e96
HHH-17729 move validation of constructors in HQL instantiations to SemanticQueryBuilder
...
fix test
2024-02-12 00:16:06 +01:00
Gavin King
a9ea331e40
HHH-17729 move validation of constructors in HQL instantiations to SemanticQueryBuilder
...
also validate injection via fields/properties
2024-02-12 00:16:06 +01:00
Gavin King
dcb2c60d4e
HHH-17729 move validation of constructors in HQL instantiations to SemanticQueryBuilder
...
also validate injection via fields/properties
2024-02-12 00:16:06 +01:00
Gavin King
766234d281
HHH-17729 move validation of constructors in HQL instantiations to SemanticQueryBuilder
...
fix tests
2024-02-12 00:16:06 +01:00
Gavin King
1a9ec1d0ad
HHH-17729 move validation of constructors in HQL instantiations to SemanticQueryBuilder
...
workaround for jpamodelgen
2024-02-12 00:16:06 +01:00
Gavin King
24937b4e67
HHH-17729 move validation of constructors in HQL instantiations to SemanticQueryBuilder
...
report SemanticExceptions with the query string
fix some warnings in ReflectHelper
2024-02-12 00:16:06 +01:00
Gavin King
0bce456e3a
properly document use of SqmFunctionDescriptor
2024-02-10 16:01:56 +01:00
Gavin King
ff76331b22
fix language and syntax in a Javadoc comment
...
and clean up unused imports
2024-02-10 12:28:09 +01:00
Gavin King
cad2d2bc62
clean up JdbcEnvironmentInitiator and parse micro database version
...
this resolves a spurious warning on Derby
2024-02-10 12:28:09 +01:00
Gavin King
7445554e88
HHH-15551 improve error message for missing association annotations
2024-02-10 09:53:33 +01:00
Gavin King
69776bc305
cleanup IntelliJ warnings in dialect package
2024-02-08 18:38:06 +01:00
Gavin King
b571b22777
HHH-17724 add count(*) to HibernateCriteriaBuilder
...
and remove some unused type parameters
2024-02-08 12:53:41 +01:00
Andrea Boriero
ecd0acb735
HHH-17704 Query using detached Proxy as parameter fails with LazyInitializationException
2024-02-08 12:07:08 +01:00
Andrea Boriero
9421b94bca
HHH-17704 Add test for issue
2024-02-08 12:07:08 +01:00
Andrea Boriero
29f51ef9ca
HHH-16454 PostgreSQL ILIKE Keyword is considered a column name when deducing alias injection points
2024-02-08 12:06:11 +01:00
Andrea Boriero
13c714c4c4
HHH-16454 Add test for issue
2024-02-08 12:06:11 +01:00
Marco Belladelli
50e6cb62e2
HHH-17693 Fix typecheck assertions for converted properties
...
Also introduce a custom `DurationJdbcType`, mainly for validation purposes.
2024-02-08 10:05:39 +01:00
Marco Belladelli
8a993f4057
HHH-17693 Add test for issue
2024-02-08 10:05:39 +01:00
Yanming Zhou
c804ff3ac5
HHH-17719 Supports boolean as return type of mutation query method
2024-02-07 14:10:48 +01:00
Gavin King
dbe2c5451e
more blurb about finder/query methods
2024-02-07 12:57:34 +01:00
Andrea Boriero
e9e601d884
HHH-16974 IllegalStateException Unsupported tuple comparison combination
2024-02-07 11:17:55 +01:00
Andrea Boriero
53f22d7dec
HHH-16974 Add test for issue
2024-02-07 11:17:55 +01:00
Gavin King
8a07a1131b
add missing package-info
2024-02-07 11:16:07 +01:00
Marco Belladelli
a71bb28a8a
HHH-17688 Make statement release more consistent in mutation delegates
2024-02-07 10:15:57 +01:00
Marco Belladelli
0f2e736b6d
HHH-17688 Add test for issue
2024-02-07 10:15:57 +01:00
Gavin King
5ad4d680ab
HHH-17716 implement JtaTransactionAdapterTransactionManagerImpl.setTimeOut()
2024-02-06 20:06:21 +01:00
Gavin King
5fa08123b3
big code example in package doc for org.hibernate.annotations.processing
2024-02-06 16:03:28 +01:00
Yoann Rodière
3b31351234
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-06 13:42:21 +00:00
Marco Belladelli
4226cf2c02
HHH-17705 Load default bytecode provider using the correct ClassLoader
2024-02-05 17:18:11 +01:00
Christian Beikov
5bd7e86e92
HHH-17662 Replace JdbcTypeConstructor uses for arrays with uniform resolve method
2024-02-05 14:33:35 +01:00
Stephanie Miller
43341da00f
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:33:35 +01:00
Yanming Zhou
747eaa3f2e
HHH-17707 Improve ColumnReference.toString() to remove repeated qualifier
...
`getExpressionText()` already contains `qualifier`
2024-02-05 13:36:38 +01:00
yjpark
7b0e511577
HHH-17696 Make Altibase Dialect compatible with Altibase 7.1 and fixes several test failures.
2024-02-05 13:34:17 +01:00
Christian Beikov
472aeb6b6d
Fix roundToSecondPrecision when rounding up a second
2024-02-05 13:02:23 +01:00
Gavin King
dc9a997f5f
improve format of error messages relating to getters/setters
2024-02-03 14:48:05 +01:00
Gavin King
c6c8d2cc0f
fix some warnings and wrong info in the javadoc
...
and slightly improve some jdoc in Dialect
also deprecate an unused method with incorrect jdoc
2024-02-03 13:15:09 +01:00
Gavin King
8e4755f84e
further improvements to jdoc of @Find and @HQL
2024-02-03 00:46:50 +01:00
Gavin King
d96b5dfffc
clarify use of Order and Page with @Find
...
[It's allowed!]
2024-02-02 18:12:27 +01:00
Marco Belladelli
39457c5e12
Fix ORA-21700 in SetAsBasicTest
2024-02-02 12:19:25 +01:00
Andrea Boriero
78bb9a9542
HHH-17320 A basic attribute of type TreeMap causes a JdbcTypeRecommendationException
2024-02-01 17:56:31 +01:00
Andrea Boriero
2dbf5ad51b
HHH-17320 Add test for issue
2024-02-01 17:56:31 +01:00
Andrea Boriero
6b78d0cf43
HHH-17687 AttributeConverter, query does not use converter to convert 'null' fields
2024-02-01 17:54:02 +01:00
Andrea Boriero
f29cf88748
HHH-17687 Add test for issue
2024-02-01 17:54:02 +01:00
Marco Belladelli
2c86dcd5be
HHH-17686 Avoid internal use of pruned expression for named references
2024-01-31 19:26:01 +01:00
Marco Belladelli
26a8c28e9d
HHH-17686 Add test for issue
2024-01-31 19:26:01 +01:00
Christian Beikov
695c3e5706
HHH-17689 Cache SQL statement for unique key lookup
2024-01-31 16:27:16 +01:00
Marco Belladelli
8be3a1db85
HHH-17594 HHH-17665 Fix proxy narrowing for delayed subtype entities
2024-01-30 19:01:43 +01:00
Marco Belladelli
8ed1e1cb40
HHH-17594 HHH-17665 Add test for issue
2024-01-30 19:01:43 +01:00
Andrea Boriero
225740bce5
HHH-17587 Setting to null a property from a @SecondaryTable and @DynamicUpdate deletes the whole entry from database
2024-01-30 17:29:08 +01:00
Andrea Boriero
663e5c0206
HHH-17587 Add test for issue
2024-01-30 17:29:08 +01:00
Marco Belladelli
b499523fff
HHH-17666 Fix trunc function argument type resolver
2024-01-30 10:37:45 +01:00
Marco Belladelli
b15ca559d6
HHH-17679 Fix unnecessary table reference resolution for treat
2024-01-26 17:24:01 +01:00
Marco Belladelli
9faa764c20
HHH-17679 Add test for issue
2024-01-26 17:24:01 +01:00
Christian Beikov
3aed69245f
HHH-17681 Restore AbstractSqmSelfRenderingFunctionDescriptor backwards compatibility
2024-01-26 17:10:26 +01:00
Christian Beikov
7ef13e1f91
HHH-15086 Introduce configurable query cache layout
2024-01-26 11:01:03 +01:00
Gavin King
78990a7910
HHH-17677 handle literal null arguments more elegantly in StandardFunctionReturnTypeResolvers
...
resolves a very confusing error message
2024-01-25 18:29:05 +01:00
Andrea Boriero
e90dba2c98
HHH-17668 NullPointerException when refreshing bytecode-enhanced entity from second-level cache
2024-01-25 18:24:11 +01:00
Andrea Boriero
08ffae74eb
HHH-17668 Add test for issue
2024-01-25 18:24:11 +01:00
Marco Belladelli
7686b6063b
HHH-17113 Fix joined inheritance and force discriminator pruning
2024-01-25 18:22:56 +01:00
Marco Belladelli
ebdd267a9e
HHH-17113 Add test for issue
2024-01-25 18:22:56 +01:00
HJK181
43e925b6b4
HHH-17675 add enum type support to H2Dialect
2024-01-25 11:14:57 +01:00
Marco Belladelli
11015687c8
HHH-17629 Reuse compatible joins for entity graphs and fetch profiles
2024-01-24 18:32:50 +01:00
Marco Belladelli
e417dbe0ca
HHH-17629 Add test for issue
2024-01-24 18:32:50 +01:00