Commit Graph

11424 Commits

Author SHA1 Message Date
Gavin King 399b1a0715 HHH-15519 start testing bitor() and xor() functions 2024-02-20 09:11:44 +01:00
Gavin King a562ab2462 HHH-16931 replace the previous impl of createCountQuery() 2024-02-19 22:56:18 +01:00
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