Commit Graph

8769 Commits

Author SHA1 Message Date
Andrea Boriero 1d1d38cb80 HHH-14387 Fix issue when bytecode enhancement enabled 2022-09-08 14:45:52 +02:00
Andrea Boriero ab15148a01 HHH-14387 Add more tests 2022-09-08 14:45:52 +02:00
Yoann Rodière 2cf9748430 HHH-14387 Demonstrate regression when bytecode enhancement enabled 2022-09-08 14:45:52 +02:00
Andrea Boriero 29e04afc67 HHH-15477 Criteria EXISTS Subquery referring the Root of the Query of which it is a Subquery causes 'Error interpreting query [SqmRoot not yet resolved to TableGroup]' 2022-09-08 12:13:31 +02:00
Andrea Boriero 6f7ed947be HHH-15477 Add test for issue 2022-09-08 12:13:31 +02:00
Gavin King 53e1ee2f19 fix error message 2022-09-08 09:46:23 +02:00
Gavin King 9005403344 very minor code cleanups in TableBinder 2022-09-08 09:46:23 +02:00
Andrea Boriero 38c8dc90c3 HHH-15356 Unable to get primary information on some dialects (ex: Oracle) when the PK column's position doesn't match the alphabetical name's order 2022-09-08 08:58:48 +02:00
Andrea Boriero 4265cc0ff9 HHH-15356 Add test for issue 2022-09-08 08:58:48 +02:00
Jan Schatteman ec49356c77 HHH-15181 / HHH-15197 / HHH-15198
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-09-07 17:00:57 +02:00
Jan Schatteman 11fb9440ef HHH-15192 - Remove support for Sybase ASE versions older than 16
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-09-07 16:51:57 +02:00
Yoann Rodière c0afae8cb3 HHH-15473 Instantiate collections in the default fetch group by default 2022-09-07 10:56:21 +01:00
Yoann Rodière 767ff43d8c HHH-15473 Test that collection properties are not initialized immediately on lazy proxies with enableCollectionInDefaultFetchGroup = true 2022-09-07 10:56:21 +01:00
Yoann Rodière 1399f3e65e HHH-15473 Actually set enableCollectionInDefaultFetchGroup(true) in relevant tests
The previous setup code was being ignored, so
enableCollectionInDefaultFetchGroup was actually `false` in these
tests...
2022-09-07 10:56:21 +01:00
Yoann Rodière febfd9d4b8 HHH-15473 Don't confuse property initialization for collection initialization in tests
Checking for property initialization was acceptable and pretty
much the only way to perform assertions before we fixed HHH-14620,
but now that initializing a property doesn't imply initializing
the collection, it's just plain wrong:

* If you expect the collection *not* to be initialized, then
  checking that that the property is not initialized is too strict:
  the assertion could fail because the property is initialized
  while the collection is not initialized.
* If you expect the collection to be initialized, then
  checking that that the property is initialized is not enough:
  the assertion could pass because the property is initialized
  while the collection is not initialized.

Besides, we can safely call the getter to test the collection
directly with Hibernate.isInitialized(entity.getCollection())
since a call to the getter is not supposed to trigger collection
initialization.
2022-09-07 10:56:21 +01:00
Yoann Rodière 560722dfaa HHH-15473 Copy/paste a few select tests to set collectionInDefaultFetchGroup to false explicitly 2022-09-07 10:56:21 +01:00
Andrea Boriero 16f865f100 HHH-15479 Removw megamorphic calls 2022-09-06 15:34:54 +02:00
Andrea Boriero 6156751188 HHH-15479 Add ListResultsConsumer.UniqueSemantic to QueryOptions 2022-09-06 15:34:54 +02:00
Andrea Boriero 12aaaff766 HHH-15479 Add Results#addUnique(R result) 2022-09-06 15:34:54 +02:00
Andrea Boriero 1905b03c95 HHH-15479 Improve ListresultConsumer duplication check method performance 2022-09-06 15:34:54 +02:00
Gavin King 601e82620d HHH-15483 allow @TenantId properties of type UUID, Long, Integer, etc
implementation is a bit nasty but it works
2022-09-06 15:15:56 +02:00
Andrea Boriero 6cf9d2d480 HHH-15465 Upgrade to Jandex 3.0.0 2022-09-06 15:14:19 +02:00
Jan Schatteman 17fa97d1b0 HHH-15182 - Remove support for MariaDB versions older than 10.3
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-09-06 15:04:04 +02:00
Jan Schatteman 5b0b1fa680 HHH-15179 - Move support for MySQL versions older than 5.7 into community dialects
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-09-06 15:04:04 +02:00
Jan Schatteman 429ab5b936 HHH-15180 - Remove support for SQL Server versions older than 2008
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-09-06 14:49:45 +02:00
Jan Schatteman 75f4c95274 HHH-15195 - Moving support for CockroachDB versions older than 21.1 into community dialects
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-09-06 14:48:04 +02:00
Jan Schatteman f33d3ed308 HHH-15190 - Remove support for H2 versions older than 1.4.197
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-09-06 14:45:37 +02:00
Christian Beikov 89f04d2274 HHH-15216 Revert moving classes out of the internal package 2022-09-05 11:38:31 +02:00
Jan Schatteman 4d4aaf3b4a HHH-15191 - Remove support for Derby versions older than 10.14.2.0
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-09-05 10:06:41 +02:00
Andrea Boriero 41b067e5a5 HHH-15159 Orphan removal of an entity with an @ElementCollection causes a ConstraintViolationException 2022-09-02 16:45:43 +02:00
Andrea Boriero 6c3d700fcc HHH-15159 Add test for issue 2022-09-02 16:45:43 +02:00
Christian Beikov a83ff54671 HHH-14387 Alternative fix for deletion of bytecode lazy collections, by creating PersistentCollection for deletedState 2022-09-02 16:43:53 +02:00
Christian Beikov 41ac1f8e88 HHH-14387 Don't create PersistentCollection for bytecode enhanced lazy loaded attributes and make sure collection deletes still work 2022-09-02 16:43:53 +02:00
Andrea Boriero b18c967cf6 HHH-13485 FilterJoinTable does not to use the defualt condition 2022-09-01 11:31:31 +02:00
Andrea Boriero 41abc8d9f0 HHH-13485 Add test for issue 2022-09-01 11:31:31 +02:00
Andrea Boriero 04ebb6a1d7 HHH-15471 Improve merge replace operation when original and target are the same object 2022-09-01 09:21:13 +02:00
Andrea Boriero 456e43957e Fix wrong toolchain configuration for java17 tests 2022-08-31 11:07:56 +02:00
Réda Housni Alaoui 2be1c9a504 HHH-15216 Cannot change MetadataProvider implementation because JPAXMLOverriddenMetadataProvider is final and precisely expected by a cast operator 2022-08-31 09:14:56 +02:00
Christian Beikov 3352486633 Fix building with JDK 20-ea due to missing experimental flag in java17Test 2022-08-30 19:13:17 +02:00
Ladislav Thon b66bc976ac HHH-15466 Compatibility with Jandex 3.0.0
The only change in Jandex 3.0.0 relevant to Hibernate ORM is that
`Indexer.index()` used to return `ClassInfo`, but now returns `void`.
This is a breaking change, but Jandex 3.0.0 has a synthetic bridge
method with the old signature for binary compatibility -- except
it always return `null`. Therefore, with this commit, Hibernate ORM
simply ignores the return value completely, which makes it compatible
with Jandex 3.0.0 at runtime, even though it is still compiled against
Jandex 2.4. The code is also source-compatible with Jandex 3.0.0 if
that is ever needed.
2022-08-30 12:14:52 +01:00
Christian Beikov f1c08e8e97 Fix wrong toolchain configuration for java17 tests 2022-08-30 12:58:07 +02:00
Christian Beikov d2cca544c2 HHH-15072 Don't enhance records and skip owner tracking for embeddable record fields 2022-08-30 09:51:05 +02:00
Christian Beikov 9f5f31ec97 HHH-15072 Add test for out of the box support for records as embeddables 2022-08-30 09:51:05 +02:00
Christian Beikov 75240b0cd3 HHH-15072 Add out of the box support for records as embeddables 2022-08-30 09:51:05 +02:00
Christian Beikov 83d4105def Pass on forgotten argument to delegate in AbstractQuery 2022-08-30 09:02:13 +02:00
Christian Beikov eb1f56d542 HHH-15458 Interpret String with JSON/XML type code as plain JSON/XML 2022-08-29 10:57:49 +02:00
Sanne Grinovero e5e2931b1c HHH-15100 Limitation of metamodel imports cache causes severe performance drops in large projects 2022-08-26 09:21:55 +01:00
Andrea Boriero c612790118 HHH-15453 Fix test failure on Oracle 2022-08-25 11:16:10 +02:00
Christian Beikov aa311855d9 HHH-15462 Optimize ColumnReference rendering and reduce buffering 2022-08-25 09:44:57 +02:00
Christian Beikov 271cba0603 HHH-15461 Replace uses of method references for SqlAppender with proper implementation 2022-08-25 09:43:48 +02:00
Andrea Boriero 84c276b3cc HHH-15359 The entity returned by a merge doesn't contain @ManyToMany relation when the collection resides in @Embeddable 2022-08-25 09:34:45 +02:00
Andrea Boriero 13bae2ef09 HHH-15359 Add test for issue 2022-08-25 09:34:45 +02:00
KARGET 254d69568b HHH-15454 correct get(alias, class) method in TupleImpl 2022-08-24 12:43:37 +02:00
KARGET 70e28876a6 HHH-15454 create test where metamodel for primitive type field is used in tuple query 2022-08-24 12:43:37 +02:00
Andrea Boriero d862b086ea HHH-15453 java.lang.NullPointerException: Cannot invoke org.hibernate.engine.spi.EntityEntry.getEntityKey() because ownerEntry is null 2022-08-24 10:43:23 +02:00
Andrea Boriero ed4f399723 HHH-15453 Add test for issue 2022-08-24 10:43:23 +02:00
Andrea Boriero 021429b519 HHH-15449 @ManyToOne associations not loaded correctly with default EAGER and batch fetch property set when using TypedQuery.resultStream 2022-08-24 10:07:58 +02:00
Andrea Boriero 960b2c7f1c HHH-15449 Add test for issue 2022-08-24 10:07:58 +02:00
Andrea Boriero beb7a37d02 HHH-15452 Predicate add expression results in UnsupportedOperationException 2022-08-18 13:47:23 +02:00
Andrea Boriero 0945cae46d HHH-15452 Add test for issue 2022-08-18 13:47:23 +02:00
Andrea Boriero 95c14ada90 HHH-15440 @OneToOne and @OptimisticLock(excluded = true) not working correctly 2022-08-18 10:32:29 +02:00
Andrea Boriero 357444fb3c HHH-15440 Add test for issue 2022-08-18 10:32:29 +02:00
Sanne Grinovero 9ecb4484a4 HHH-15448 Run tests on MSSQL Server using trustServerCertificate=true 2022-08-16 09:35:17 +01:00
Andrea Boriero 740db4329a HHH-15442 Fix BaseSqmToSqlAstConverter#visitAnyDiscriminatorTypeExpression() needs to create TableGroupJoin 2022-08-10 16:47:56 +02:00
Andrea Boriero 47c3a41308 HHH-15442 Use ConvertedBasicTypeImpl and AnyDiscriminatorConverter 2022-08-10 16:47:56 +02:00
Andrea Boriero 863f045bf8 HHH-15442 Allow for setParameter usage with a queries for a specific type in an Any-discriminated relationship 2022-08-10 16:47:56 +02:00
Andrea Boriero bc94357d4a HHH-15442 Add test for issue 2022-08-10 16:47:56 +02:00
Christian Beikov 69a5cb3136 HHH-15438 Don't fail booting when PostgreSQL JDBC types are inaccessible 2022-08-08 19:38:36 +02:00
Christian Beikov 95a300d7d9 HHH-15441 Improve error message if SqlTypes type code can't be interpreted 2022-08-08 19:38:36 +02:00
Christian Beikov a681c0e1d9 HHH-15416 Improve error messages when FormatMapper is missing 2022-08-04 12:51:52 +02:00
Christian Beikov f8eb133334 HHH-15433 Return a literal for Path#type when no discriminator exists 2022-08-04 11:07:20 +02:00
Christian Beikov a69912dd9c HHH-15433 Fix a potentiatl index out of bounds exception 2022-08-04 11:07:20 +02:00
Christian Beikov 446bcb5a00 HHH-15430 Allow use of @Enumerated on basic collection 2022-08-03 14:38:46 +02:00
Christian Beikov 23a487628a HHH-15429 Fix loss of precision when serializing/deserializing arrays of doubles 2022-08-03 14:38:46 +02:00
Christian Beikov 4596c7f622 HHH-15428 Remove some incubating classes that have become unnecessary 2022-08-03 14:38:46 +02:00
Christian Beikov 7b6df34519 HHH-15428 Fix handling of converters by moving them to JdbcMapping 2022-08-03 14:38:46 +02:00
Andrea Boriero 4674f689aa HHH-15417 Add test for issue 2022-08-03 14:38:46 +02:00
Andrea Boriero 4a7c58b983 HHH-15418 Composite primary key with NativeQuery & alias not working 2022-08-03 08:42:20 +02:00
Andrea Boriero 89d99bfdbd HHH-15418 Add test for issue 2022-08-03 08:42:20 +02:00
Andrea Boriero c33ff9917a HHH-15391 StackOverflow when applying a load entity graphs to a query 2022-08-02 20:36:15 +02:00
Andrea Boriero 2d2e7eb4fc HHH-15391 Add test for issue 2022-08-02 20:36:15 +02:00
Andrea Boriero 286b976fc5 HHH-15423 @Any discriminated association fails to be implicitly fetched due to UnsupportedOperationException 2022-08-02 17:24:13 +02:00
Andrea Boriero 1c3549c9c5 HHH-15423 Add test for issue 2022-08-02 17:24:13 +02:00
Sanne Grinovero 2dbf38ef7b HHH-15415 Move the JaxbXmlFormatMapper as well for consistency 2022-07-22 15:12:42 +01:00
Sanne Grinovero 2f313edfab HHH-15415 Separate detection for Jackson Databind and Jackson XML, improve comments 2022-07-22 15:12:42 +01:00
Sanne Grinovero 492b4aa540 HHH-15415 Cleanup of JaxbXmlFormatMapper initialization 2022-07-22 15:12:42 +01:00
Sanne Grinovero f6580ae520 HHH-15415 Moving all Jackson and Jakarta Jsonb integrations into dedicated packages 2022-07-22 15:12:42 +01:00
Sanne Grinovero d363ba6e89 HHH-15415 Jakarta JsonB integration to not break GraalVM native image compilation 2022-07-22 15:12:42 +01:00
Sanne Grinovero ca2088ad39 HHH-15415 Jackson integration to not break GraalVM native image compilation 2022-07-22 15:12:42 +01:00
Sanne Grinovero 68dc79a87a HHH-15412 Cleanup: remove reflection keeping JDK8 compatibility afloat in AggregatedServiceLoader 2022-07-21 22:30:55 +01:00
Andrea Boriero 83ea2e8f42 HHH-15323 @AnyDiscriminator Unable to filter a polymorphic relationship in a query 2022-07-21 22:02:16 +02:00
Andrea Boriero 0f599da6c4 HHH-15406 Tests annotated with org.hibernate.testing.RequiresDialect having as value a deprecated dialect are not executed 2022-07-21 22:00:14 +02:00
Christian Beikov 38589b5e7b HHH-15392 Infer Character as type for the LIKE predicate escape expression 2022-07-21 15:21:50 +02:00
Andrea Boriero 02a1d1a27e HHH-15392 Add test for issue 2022-07-21 15:21:50 +02:00
Sanne Grinovero 697cfea170 HHH-15411 Introduce an system property to fully disable Hibernate's use of a system SecurityManager 2022-07-21 12:39:39 +01:00
Scott Marlow deb2c52ab4 HHH-15371 ByteBuddyProxyFactory call to proxyClass.getConstructor().newInstance() when used with Java Security Manager should run in a privileged action
Signed-off-by: Scott Marlow <smarlow@redhat.com>
2022-07-21 09:54:21 +01:00
Sanne Grinovero fbd7fe000e HHH-15409 Restore lazy initialization semantics for MetadataSources#xmlMappingBinderAccess 2022-07-20 21:58:15 +01:00
Sanne Grinovero e6fdafc393 HHH-15408 QueryEngine to be more defensive with passed parameters 2022-07-20 21:58:15 +01:00
Sanne Grinovero f7de8a8146 HHH-15407 Need to expose more internal state from MetadataImpl to allow copies of metadata instances 2022-07-20 21:58:15 +01:00
Andrea Boriero 1f31284f33 HHH-15403 Likely Statement leak on invoking a stored procedure 2022-07-20 21:57:17 +01:00
Andrea Boriero a4e52f91f8 HHH-15403 Add test for issue 2022-07-20 21:57:17 +01:00
Sanne Grinovero 96b48aaadc HHH-15404 Move annotation to intended package: org.hibernate.Remove (from org.hibernate.annotations.Remove) 2022-07-19 15:14:51 +01:00
Andrea Boriero 321af904df HHH-15379 NPE building mapping from HBM for collections targeting a class that does not have an HBM mapping 2022-07-18 12:06:18 +01:00
Andrea Boriero c553d35a86 HHH-15379 Add test for issue 2022-07-18 12:06:18 +01:00
Sanne Grinovero 1f6d8c7032 Deprecate the IdentifierGeneratorFactory#getDialect method, no need to expose it 2022-07-14 14:16:09 +01:00
Sanne Grinovero 4bf6d59f58 minor: methods could be static 2022-07-14 14:16:09 +01:00
Andrea Boriero 35fb490aaa HHH-15390 Calling SqmQuery#getSqmStatement()#toHqlString() causes ClassCastExpection when using distinct in Criteria or HQL query 2022-07-13 16:25:48 +02:00
Andrea Boriero fac6b0c1f7 HHH-15390 Add test for issue 2022-07-13 16:25:48 +02:00
Andrea Boriero 059a63e9ba HHH-15395 HibernateCriteriaBuider#power(Expression<? extends Number> x, Number y) throws ClassCastException 2022-07-13 13:58:09 +02:00
Andrea Boriero d8636470ca HHH-15395 Add test for issue 2022-07-13 13:58:09 +02:00
Karel Maesen 8021ac112b
HHH-15382 CockroachDB doesn't support value propagation 2022-07-11 20:50:06 +02:00
Gavin King 591eada30d remove AbstractSessionImpl, which is obsolete
minor improvements to jdoc
2022-07-07 14:30:28 +02:00
Sanne Grinovero 20b9d99a18 HHH-15322 Allow JNDI lookups using the osgi scheme 2022-07-06 22:38:33 +01:00
Gavin King 1b60e350c4 add @Incubating tag an setting documented as experimental 2022-07-06 17:58:53 +02:00
Gavin King 7b0270cc74 expand Javadoc of CURRENT_SESSION_CONTEXT_CLASS 2022-07-06 17:58:53 +02:00
Andrea Boriero 06e44f2adb HHH-15218 @OptimisticLocking(DIRTY) leads to wrong query during delete of circular reference 2022-07-06 11:46:43 +01:00
Andrea Boriero 0a013ed8a4 HHH-15218 Add test for issue 2022-07-06 11:46:43 +01:00
Gavin King b2a1324814 @link -> @linkplain in Query javadoc 2022-07-04 21:05:14 +02:00
Andrea Boriero 13c5e2a52b HHH-15352 add ScrollableResults.setFetchSize() 2022-07-04 11:15:57 +02:00
Gavin King a89d558485 tests for right/full join syntax 2022-07-02 20:50:13 +02:00
Gavin King 6404704311 HHH-15352 add ScrollableResults.setFetchSize() 2022-07-02 18:05:47 +02:00
Christian Beikov 9c660f7e0a HHH-15367 Lift embedded/id-class to-one selection limitation for from clause subqueries 2022-07-01 12:05:54 +02:00
Andrea Boriero 7676af4023 HHH-15331 Constructor expressions in the SELECT clause ignores attribute converter 2022-07-01 11:23:10 +02:00
Andrea Boriero 1c9bd9516f HHH-15331 Add test for issue 2022-07-01 11:23:10 +02:00
Christian Beikov 1da894318c HHH-15342 Inappropriate variation of HQL left join to SQL inner join 2022-06-28 13:53:31 +02:00
Andrea Boriero 985467bcba HHH-15342 Inappropriate variation of HQL left join to SQL inner join 2022-06-28 13:53:31 +02:00
Andrea Boriero d553dea5a8 HHH-15342 Add test for issue 2022-06-28 13:53:31 +02:00
Andrea Boriero 115c6cdf27 HHH-15369 UnknownTableReferenceException when two subclasses have same field with different type 2022-06-28 13:52:42 +02:00
Andrea Boriero 9f288c3520 HHH-15369 Add test for issue 2022-06-28 13:52:42 +02:00
Andrea Boriero fcabfa400a HHH-15358 @Where annotation with globally_quoted_identifiers causes Unable to determine TableReference Exception 2022-06-27 12:39:44 +02:00
Andrea Boriero c39ccfd8eb HHH-15358 Add test for issue 2022-06-27 12:39:44 +02:00
Gavin King ba48130c3f remove exclamation marks from error messages! 2022-06-24 17:14:43 +02:00
Andrea Boriero f5be0e1f07 HHH-15346 @ManyToOne associations not loaded correctly with default EAGER and batch fetch property set 2022-06-24 13:55:55 +02:00
Andrea Boriero a70150fe2e HHH-15346 Add test for issue 2022-06-24 13:55:55 +02:00
Andrea Boriero a8318fdfb9 HHH-15354 Throw MappingException instead of NPE for hbm referencing unmapped class 2022-06-24 10:11:43 +02:00
Andrea Boriero 48e3bf8381 HHH-15354 Add test for issue 2022-06-24 10:11:43 +02:00
Christian Beikov 0777f7941c HHH-15361 Fix update assignment issues due to missing JavaType#isWider impls 2022-06-24 00:23:35 +02:00
Christian Beikov 0864ca58a3 HHH-15360 Fix listagg rendering on older H2 versions 2022-06-24 00:00:44 +02:00
Christian Beikov 2b78f99ea8 HHH-15357 Fix access to mapped by map key 2022-06-23 22:34:29 +02:00
Christian Beikov 9cff075a89 HHH-15349 Fix rendering of EntityValuedPathInterpretation when comparing different model parts 2022-06-23 20:20:00 +02:00
Christian Beikov b3d0addaeb Improve wording on code comment in PostgreSQLDialect 2022-06-22 16:09:00 +02:00
Gavin King 8e55dde340 clean up some warnings
mostly .instanceOf() calls
2022-06-20 17:57:39 +02:00
Gavin King 58da5f24f9 "sub query" -> "subquery"
The word "sub" means "submarine", "submissive", or "substitute".
It's never an adjective.
2022-06-18 00:22:17 +02:00
Icemap 941db3c37c HHH-15350 Delete Non-ASCII characters in an identifier class 2022-06-17 17:18:53 +02:00
Christian Beikov 2700b0a8cf HHH-15347 Use equals instead of identity check in NavigablePath#relativize 2022-06-17 13:15:16 +02:00
Christian Beikov d06eee0a5d HHH-15343 Fix NPE in type determination for case expression with null literal 2022-06-17 09:48:57 +02:00
Steve Ebersole edc95df72a HHH-15344 - Ability to apply testing annotations at method-level
- `@ServiceRegistry`
    - `@BootstrapServiceRegistry`
2022-06-16 21:15:18 +01:00
Gavin King 6c461a3674 HHH-15001 Hibernate.size(), Hibernate.contains(), Hibernate.get()
add @since tags
2022-06-15 15:15:37 +02:00
Christian Beikov 3cf6f2e3ef HHH-15341 Disallow passing transient entity parameter values 2022-06-15 15:13:58 +02:00
Christian Beikov 04fd92b204 HHH-15339 Add foreign key part name as target key property name for fk optimization 2022-06-15 14:17:25 +02:00
Christian Beikov cc500d46e8 HHH-15338 Remember initial selection node alias in SqmSelection 2022-06-15 10:57:48 +02:00
Christoph Dreis 6a227b5ee2 HHH-15325 Avoid allocations from BitSet.stream() in AbstractEntityPersister 2022-06-15 09:56:45 +02:00
Andrea Boriero 4d070f24f9 HHH-15324 Hibernate internally use Query#setHint with legacy java.persistence properties causing deprecation log warnings 2022-06-15 09:50:45 +02:00
Christoph Dreis 9a5ee1a6df HHH-15329 Remove workaround for HHH-10382 in GetterFieldImpl 2022-06-15 09:11:11 +02:00
Christian Beikov ed1cea6ba1 Handle insert-select for entities with generators that do not support bulk insertion 2022-06-13 23:33:52 +02:00
Jan Schatteman 49e9696ced Temporarily disabled InsertSelectTests and dropped the removeDescriptor method from DdlTypeRegistry again, since it will not be needed after all
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-06-10 18:52:21 +02:00
Gavin King c60fbc20ec documentation for hibernate.enable_lazy_load_no_trans 2022-06-10 17:00:29 +02:00
Jan Schatteman e26237dc0b Added a method for removing DdlTypes from the DdlTypeRegistry (intended for internal use)
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-06-09 19:17:32 +02:00
Steve Ebersole 0adbf40c49 HHH-15316 - Session.createQuery() doesn't accept JpaCriteriaInsertSelect 2022-06-06 14:39:43 -05:00
Christian Beikov 341267b133 HHH-3356 Support for normal and lateral subquery in from clause 2022-06-04 19:07:43 +02:00
Jan Schatteman 4947af946a Add an optional getMinimumSupportedVersion() to Dialect, for validation purposes
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-06-03 18:54:50 +02:00
Christian Beikov b7dca12e70 HHH-15288 Switch to SMALLINT as recommended type for enums 2022-05-30 19:52:39 +02:00
Christian Beikov 497c09cddb HHH-10999 Remove configuration setting for configuring the JDBC type for arrays 2022-05-30 19:52:39 +02:00
Christian Beikov 45fc49314e HHH-10999 Add support for SQL array types mapped as Java arrays and collections 2022-05-30 19:52:39 +02:00
Karel Maesen 39d8fa0662
HHH-15294 cockroachdb fixes
* HHH-15294 Fix setting of untyped null values in CockroachDB dialect

Solution exactly same as in PostgresqlDialect

* HHH-15294 Change CockroachDB multitable mutation strategies to CTE

Align with the Postgresql strategy

* HHH-15294 Fix missing IdentityColumnSupport in CockroachDB Dialect

* HHH-15294 Skip test for CockRoachDB due to unsupported automatic type conversion

* HHH-15294 CockroachDB doesn't support value propagation
2022-05-27 16:22:06 +02:00
koisyu 3d893712e6 HHH-15300 - Lazy evaluation to statement.toString() when logging slow queries 2022-05-26 15:15:18 -05:00
Steve Ebersole 3635e4e935 build changes 2022-05-25 14:14:48 -05:00
Steve Ebersole 19f513dde2 HHH-15251 - Unified mapping XSD based on JPA 3.1
- more work on HbmXmlTransformer
2022-05-25 08:40:51 -05:00
Steve Ebersole 309edd9e32 HHH-15251 - Unified mapping XSD based on JPA 3.1
- more work on HbmXmlTransformer
2022-05-25 08:40:51 -05:00
Steve Ebersole d5a23a61ea HHH-14063 - AccessType is not correctly propagated for embeddable mappings in element-collection
- tests
2022-05-24 14:42:05 -05:00
Steve Ebersole 4ddf6e39b5 HHH-15251 - Unified mapping XSD based on JPA 3.1
- more work on HbmXmlTransformer
2022-05-24 12:08:22 -05:00
Andrea Boriero 8f5c7881ff HHH-15281 INSERTs/UPDATEs no longer executed as JDBC Batch statements if hibernate.temp.use_jdbc_metadata_defaults is set to false 2022-05-24 14:58:27 +01:00
Andrea Boriero 11b8352f13 HHH-15281 Add test for issue 2022-05-24 14:58:27 +01:00
Steve Ebersole 9a26f2503b HHH-15276 - Introduce ConverterRegistration 2022-05-23 13:08:45 -05:00
Steve Ebersole 571d46bef8 HHH-15276 - Introduce ConverterRegistration 2022-05-23 13:08:45 -05:00
Andrea Boriero 6409db767d HHH-15286 Query with a Composite Identifier (@IdClass) throws an exception 2022-05-23 15:05:39 +02:00
Andrea Boriero 00e8506a13 HHH-15286 Add test for issue 2022-05-23 15:05:39 +02:00
Christian Beikov cb93dc7876 HHH-15291 Fix translation issue with SqmCoalesce 2022-05-23 12:50:28 +02:00
Christian Beikov f2446e2ce5 Workaround XJC generation issue 2022-05-23 11:35:40 +02:00
Andrea Boriero 81d749e930 HHH-15279 NPE with Id on OneToOne referencing entity with multi-level EmbeddedId 2022-05-23 10:28:05 +02:00
Andrea Boriero 4066fe0445 HHH-15279 Add test for issue 2022-05-23 10:28:05 +02:00
Karel Maesen e05b99658f HHH-15293 BYTES column type in CockroachDB does not support a length specification 2022-05-23 10:19:42 +02:00
Nathan Xu 566a543d77 HHH-15292 escape html chars in JavaDoc 2022-05-23 10:15:04 +02:00
Andrea Boriero 5ba1193890 HHH-15283 - fix NPE for NamedNativeQuery + SqlResultSetMapping (columns) 2022-05-23 09:39:57 +02:00
Nathan Xu 583a36902c HHH-15283 - fix NPE for NamedNativeQuery + SqlResultSetMapping (columns) 2022-05-23 09:39:57 +02:00
Andrea Boriero e0f1a2ee13 HHH-15258 Fix test failure for HANA db 2022-05-23 09:36:10 +02:00
Steve Ebersole 26dbafb2b3 HHH-15251 - Unified mapping XSD based on JPA 3.1;
- `mapping-3.1.0.xsd`
   - JAXB model for `mapping-3.1.0.xsd`
   - Overriding caching (region, usage, include) via partial mapping document
   - Initial hbm.xml -> mapping.xml transformation support
   - Gradle task for performing transformations
2022-05-20 06:46:44 -05:00
Andrea Boriero b88094e70a HHH-15285 Calling getJavaType() of @ElementCollection with basic types returns wrong type 2022-05-19 18:47:54 +02:00
Andrea Boriero 192b591c51 HHH-15285 Add test for issue 2022-05-19 18:47:54 +02:00
Andrea Boriero 2af19a6278 HHH-15258 Orphan removal for OneToMany relations is broken when used with GenerationType.IDENTITY 2022-05-19 13:07:35 +02:00
Nathan Xu 1a94bcc4a2 HHH-15258 Add test for issue 2022-05-19 13:07:35 +02:00
Andrea Boriero e29884b764 HHH-15260 Criteria query is unable to determine TableReference when combining subquery with join 2022-05-19 12:18:58 +02:00
Thomas Heigl f0cb0e8f78 HHH-15260 Add test for issue 2022-05-19 12:18:58 +02:00
Andrea Boriero 298623d2cc MysqlDialect register localtimeLocaltimestamp functions 2022-05-19 10:46:13 +02:00
Andrea Boriero 1ae61b3388 HHH-15278 NPE when NULL is used in the projection 2022-05-19 10:46:13 +02:00
Andrea Boriero 3251d5e9d0 HHH-15278 Add test for issue 2022-05-19 10:46:13 +02:00
Nathan Xu e87ad39dd6 HHH-15153 - @OneToOne does not support @EmbeddedId 2022-05-18 15:50:11 +02:00
Andrea Boriero 61586d9559 HHH-15256 HQL Query with left join throws NPE when using :param IS NULL 2022-05-16 15:18:27 +02:00
Andrea Boriero 747777167c HHH-15256 Add test for issue 2022-05-16 15:18:27 +02:00
Nathan Xu 5d6e9a1fdb HHH-15255 fix org.hibernate.orm.test.batch.BatchTest 2022-05-16 12:52:57 +02:00
Sven Strickroth d03588fd29 [HHH-15259] Explicitly add JavaDoc to make @deprecated hint visible in Eclipse
Signed-off-by: Sven Strickroth <email@cs-ware.de>
2022-05-16 12:51:35 +02:00
Andrea Boriero 22074e3dcb HHH-15269 Update NativeQuery unable to use h-schema placeholder, just emits placeholder contents into SQL 2022-05-16 11:03:31 +02:00
Andrea Boriero bd27a70685 HHH-15269 Add test for issue 2022-05-16 11:03:31 +02:00
Francesco Marino b37168a0ff HHH-15134 Update a bytecode enanchhed Entity with a Version attribute causes OptimisticLockException 2022-05-14 23:19:03 +01:00
Sanne Grinovero f2ac89a484 HHH-15274 Field LazyAttributeLoadingInterceptor#lazyFields can never be null 2022-05-14 19:06:35 +01:00
Sanne Grinovero 8e78a61bcc HHH-15274 Optimise LazyAttributeLoadingInterceptor's routines to identify lazy fields 2022-05-14 19:06:35 +01:00
Nathan Xu 3630fbad9b HHH-15263 - @NamedQuery is not supported with UPDATE statement 2022-05-13 14:21:57 +02:00
Christian Beikov 9d35e3dd18 HHH-15267 Make ParameterBindingsMemento extend Serializable so that cache keys can be serialized 2022-05-13 13:40:04 +02:00
Christian Beikov 9351bcf30d HHH-15266 Fix NPE during function logging due to wrong character_length alternative key registration 2022-05-13 13:35:22 +02:00
Yoann Rodière 967ede47c0 HHH-15265 Take default catalog/schema into account when generating DDL comments 2022-05-13 13:26:47 +02:00
Yoann Rodière de4439ca0c HHH-15265 Test that default catalog/schema are taken into account in generated DDL comments 2022-05-13 13:26:47 +02:00
Yoann Rodière 3aada57305 HHH-15270 Fix inconsistent precedence of orm.xml implicit catalog over "default_catalog" in XML-mapped entities 2022-05-13 13:26:47 +02:00
Yoann Rodière 141ad167ee HHH-15270 Test default catalog/schema with hbm.xml/orm.xml mapping when catalog/schema not specified at file level 2022-05-13 13:26:47 +02:00
Steve Ebersole 49734095da Javadoc 2022-05-11 16:00:20 -05:00
Andrea Boriero 29848043b6 HHH-15229 Query returns null for broken foreign key reference and NotFoundAction.EXCEPTION 2022-05-05 16:28:32 +02:00
Andrea Boriero 0ce120a344 HHH-15229 Add test for issue 2022-05-05 16:28:32 +02:00
Ptits de Barbe 19f6959519 HHH-4384 Allow join column override if @JoinColumn is absent on @OneToOne(mappedBy = "").
Tests: this case and disallow if mappedBy > "".
2022-05-05 16:03:11 +02:00
Nathan Xu d998d6fb48 HHH-15241 fix broken references in javadoc 2022-05-05 16:01:55 +02:00
Nathan Xu 691ee7bf5d HHH-15246 fix NPE when null value is set to Enum in query 2022-05-05 13:42:51 +02:00
Christian Beikov a961ba45ac Add documentation for CompositeUserType 2022-05-05 09:18:19 +02:00
Christian Beikov c18e611ed6 HHH-15200 Add support for the SQLXML type 2022-05-05 09:07:37 +02:00
Christian Beikov 51c40cd6a1 HHH-15165 Add support for SQL geography type 2022-05-04 16:55:15 +02:00
Nathan Xu 64c39691ff HHH-15211 fix embeddable basic attribute converter hash code bug 2022-05-04 10:12:40 +02:00
Nathan Xu 1946aea068 HHH-15211 add testing case 2022-05-04 10:12:40 +02:00
Andrea Boriero 6a778a321a HHH-15240 Defining a UserVersionType causes AssertionError from VersionResolution if running in JVM with -ea flag set 2022-05-04 09:09:04 +02:00
Andrea Boriero 6b02554c82 HHH-15240 Add test for issue 2022-05-04 09:09:04 +02:00
Andrea Boriero 5f0c215d6d HHH-14843 Add test for issue 2022-05-03 09:56:48 +02:00
Nathan Xu b469c73d1e HHH-15232 fix a bug when empty entity collection is provided for a query parameter 2022-05-02 10:13:15 +02:00
Steve Ebersole e2258b3232 HHH-15150 - EmbeddedId CacheKeys are no longer Serializable 2022-04-29 15:16:50 -05:00
Andrea Boriero 6c5870ee0b HHH-15150 EmbeddedId CacheKeys are no longer Serializable 2022-04-29 15:16:50 -05:00
William Burns 1194e7f23b HHH-15150 Add test for issue 2022-04-29 15:16:50 -05:00
Andrea Boriero 5d0fc0f488 HHH-15233 Query NPE when using ':param IS NULL' and the parameter is an Entity 2022-04-29 13:50:08 -05:00
Andrea Boriero d4f03109c8 HHH-15233 Add test for issue 2022-04-29 13:50:08 -05:00
Steve Ebersole 5c12f7a951 HHH-15201 - Composite ID with dynamic-map entities fails with an exception 2022-04-29 13:39:49 -05:00
Andrea Boriero aa6bb1481c HHH-15201 Composite ID with dynamic-map entities fails with an exception 2022-04-29 17:48:53 +02:00
Andrea Boriero 03410ac24e HHH-15201 Add test for issue 2022-04-29 17:47:26 +02:00
Nathan Xu a2e39a1757 HHH-15220 Fix typos 2022-04-29 13:49:08 +01:00
Nathan Xu 502c6610e2 HHH-15221 Fix a logging error in JdbcValuesCacheHit.java 2022-04-29 12:26:40 +01:00
Yoann Rodière a057a045d4 HHH-15212 Test placeholders in auxiliary object SQL strings 2022-04-28 08:46:54 +02:00
Yoann Rodière d28e300013 HHH-15212 Fix SimpleAuxiliaryDatabaseObject ignoring the default catalog/schema set through configuration properties 2022-04-28 08:46:54 +02:00
Steve Ebersole 9e9a8135dc HHH-15206 - Upgrade to ANTLR 4.10 2022-04-27 06:44:57 -05:00
Steve Ebersole 69e57404c6 HHH-15226 - Publish a Gradle platform (Maven Bom++) for Hibernate ORM
- plus use Gradle version catalogs as opposed to `libraries.gradle`
- dropped OSGi manifest entries for hibernate-envers - they were broken and we decided we no longer support OSGi
2022-04-26 14:41:04 -05:00
Andrea Boriero 5b85321bb9 HHH-15225 Jta transactions, name queries with errors throw IllegalStateException instead of IllegalArgumentException when transaction is not active 2022-04-26 14:57:48 +02:00
Andrea Boriero ae51ae9c31 HHH-15225 Add test for issue 2022-04-26 14:57:48 +02:00
Andrea Boriero 0592e1be77 HHH-15142 add test for issue 2022-04-26 14:00:52 +02:00
Andrea Boriero c58cd979d1 HHH-15223 Embeddables in the Query Result, the embeddable instance returned by the query will not be in the managed state 2022-04-26 10:56:59 +02:00
Andrea Boriero c0df74f0f3 HHH-15223 Add test for issue 2022-04-26 10:56:59 +02:00
Loïc LEFEVRE d83128ee85 HHH-15210 Increase Oracle Dialect MaxIdentifierLength to 128 for 12.2+ 2022-04-25 09:58:14 +02:00
Sanne Grinovero 46b3c10d8f HHH-15219 Re-introduce the ability to stop and then reactivate a ServiceRegistry 2022-04-23 22:18:46 +01:00
Sanne Grinovero 8dcbed8d45 HHH-15222 Introduce a SessionLazyDelegator SPI 2022-04-23 22:17:37 +01:00