Commit Graph

5709 Commits

Author SHA1 Message Date
Gail Badner 672a7e6a00 HHH-14537 : Added test for issue
(cherry picked from commit 9cb9137fb8)
2021-03-30 11:21:45 -07:00
Jaanus Hansen b4aae92af3 HHH-4815 Implement support for orphan removal of assocations within embeddables 2021-03-18 16:34:18 +01:00
randymay a123562860 HHH-12076 Fix index out of bounds exception and allow table group joins for collection joins as well 2021-03-18 16:08:15 +01:00
Christian Beikov 48b4ba7ea1 HHH-9182 Cleanup grammar ambiguity issues 2021-03-18 15:52:54 +01:00
Sanne Grinovero 3a86b9b697 HHH-14502 Iterations and memory retention improvements for processing of PropertyContainer metadata 2021-03-15 17:23:28 +00:00
Andrea Boriero 9412c44c30 HHH-14499 Explicitly listing mapped classes which are @MappedSuperClass might break narrowing down of generics 2021-03-15 16:58:27 +00:00
Andrea Boriero 83f5dbf203 HHH-14499 Add test for issue 2021-03-15 16:58:21 +00:00
Christian Beikov f23e97fb2a Backport GH actions to 5.4 2021-03-04 17:01:02 +01:00
Yoann Rodière e3be7e610c HHH-14439 Test executing the same query with subselects a second time with different list parameters
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
2021-03-04 13:05:26 +01:00
Yoann Rodière c7505bab1d HHH-14439 Clean up expanded list parameters before re-executing a query
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
2021-03-04 13:05:26 +01:00
johnniang 48d0a80bbf HHH-14473 add test case 2021-03-03 11:18:51 +00:00
johnniang 4bcdd17df4 HHH-14473 Resolve managed class name with class loader as well 2021-03-03 11:18:45 +00:00
Sanne Grinovero 0f78d9cfec HHH-14477 Log warnings about the use of Javassist as BytecodeProvider being deprecated 2021-03-03 10:47:53 +00:00
Gail Badner 36ec6cfc90 HHH-14390 HHH-14466 : StackOverflowError loading inverse side of associations owned by associated entity ID
Improved code comments as recommended by Steve Ebersole.

(cherry picked from commit 34a361058d)
2021-03-02 14:20:47 -08:00
Gail Badner 681cc77dbb HHH-14390 : StackOverflowError with @Fetch(FetchMode.SELECT) mapped for entity with an ID that is a bidirectional one-to-one eager association
Move fix into FetchStyleLoadPlanBuildingAssociationVisitationStrategy

(cherry picked from commit cb18fdb4f7)
2021-03-02 14:20:30 -08:00
Gail Badner 4448d42c7d HHH-14466 : StackOverflowError loading an entity with eager one-to-many if bidirectional and many-to-one side is the ID
(cherry picked from commit 2bacaabc37)
2021-03-02 14:20:00 -08:00
Christian Beikov 72bcd97db8 HHH-11076 Log a warning if uninitialized collection unsets session when filters are enabled 2021-03-02 18:06:05 +01:00
Christian Beikov c1a7a14d1c HHH-14471 Fix concurrency issue due to builder sharing in DynamicBatchingEntityLoader 2021-03-02 18:05:54 +01:00
Christian Beikov 30dc9add99 HHH-9182 Test and fix HQL rules to allow more expression types in aggregate functions 2021-03-02 18:05:43 +01:00
Christian Beikov 08d0bf206e HHH-14351 Fix order by type discriminator rendering issue 2021-03-02 18:05:28 +01:00
Sanne Grinovero a95249b9f9 HHH-14474 Method AbstractEntityPersister#getAppropriateUniqueKeyLoader also need to change in protected 2021-03-02 13:27:38 +00:00
Sanne Grinovero d55dd93ec5 HHH-14474 Style and formatting improvements 2021-03-02 10:15:24 +00:00
Gavin King 40dccc5a17 HHH-14474 Refactor internal visibility to allow Hibernate Reactive to implement non-primary key associations
see https://github.com/hibernate/hibernate-reactive/issues/565
2021-03-02 10:15:24 +00:00
Sanne Grinovero 883a5b7d6a HHH-14443 Formatting and style fixes 2021-03-01 16:27:49 +00:00
Francois van Delft 14ab95e53a HHH-14443 Add hashcode to ObjectTypeCacheEntry, so query cache can do a successfull lookup for queryies with AnyTypes 2021-03-01 16:27:44 +00:00
gbadner c760583646 HHH-14467 Avoid false positives when detecting *ToOne associations that are part of the identifier
Co-authored-by: Yoann Rodière <yoann@hibernate.org>
2021-03-01 09:48:41 +01:00
Gail Badner afd93421e5 HHH-14467 Simplify detection of *ToOne associations that are part of the entity identifier 2021-03-01 09:48:41 +01:00
Yoann Rodière 3f422304e7 HHH-14467 Test referencing an entity whose ID is derived
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
2021-03-01 09:48:41 +01:00
Yoann Rodière 27ceeedc04 HHH-14467 Fix relative ordering of second pass for associations and derived IDs
Always execute second pass for associations referencing an entity with
derived ID after the second pass for that entity's derived ID.

Signed-off-by: Yoann Rodière <yoann@hibernate.org>
2021-03-01 09:48:41 +01:00
Gavin King ef6e1b8315 HHH-14464 Expose useful things to enable cleanup of HR code
- expose useful static-y methods in AbstractEntityPersister
- add methods to OptimisticLockStyle to reduce verbosity
- add a useful method to ValueGeneration
2021-02-23 13:38:27 +00:00
Gavin King af786b327b HHH-14464 Make two methods of AbstractEntityPersister protected
for the benefit of Hibernate Reeactive
2021-02-23 13:38:20 +00:00
Gail Badner f451ed46d9 HHH-14389 : Add test case that throw IllegalArgumentException using EntityManager#find by ID when ID is a one-to-one association
(cherry picked from commit 7e2747516a)
2021-02-11 16:09:04 -08:00
Gail Badner 19df09056d HHH-14389 : Added test case. OneToOneWithDerivedIdentityTest#testFindById reproduces the bug and is annotated with @FailureExpected
(cherry picked from commit 30fcb05795)
2021-02-11 16:08:58 -08:00
Gail Badner 0d1d2af851 HHH-14390 : StackOverflowError with @Fetch(FetchMode.SELECT) mapped for entity with an ID that is a bidirectional one-to-one eager association
(cherry picked from commit 8a01b4dab4)
2021-02-11 13:13:31 -08:00
Gail Badner 403f96555a HHH-14390 : Added test cases
(cherry picked from commit b40d1251e3)
2021-02-11 13:13:14 -08:00
Gail Badner a2fff334a7 HHH-11903 : @OneToOne Derived ID is null when returned by query when bidirectional
(cherry picked from commit 4741fa4f33)
2021-02-11 13:12:01 -08:00
Sanne Grinovero f8fd7a7b48 HHH-14447 Remove unneccessary type check 2021-02-09 13:34:55 +01:00
Sanne Grinovero f6844e4b5d HHH-14447 Add missing EventGroupListeners into FastSessionService and take advantage of them 2021-02-09 13:13:43 +01:00
Yoann Rodière 77a847cb38 HHH-14444 Encapsulate ID generation in GenerationState for PooledLoThreadLocalOptimizer
This is just a cosmetic change, it doesn't change the behavior at all.

Signed-off-by: Yoann Rodière <yoann@hibernate.org>
2021-02-09 09:29:47 +00:00
Yoann Rodière 77467d00f1 HHH-14444 Avoid synchronization for multi-tenant generation in PooledLoThreadLocalOptimizer
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
2021-02-09 09:29:47 +00:00
Yoann Rodière 9658fc8f49 HHH-14444 Avoid synchronization for single-tenant generation in PooledLoThreadLocalOptimizer
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
2021-02-09 09:29:47 +00:00
Yoann Rodière fe965d1919 HHH-14444 Test concurrent usage of ID generator optimizers
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
2021-02-09 09:29:47 +00:00
Andrea Boriero e8fb4d8403 HHH-14445 Javassist skip EntityWithMutableAttributesTest, LoadAndUpdateEntitiesWithCollectionsTest, SimpleDynamicUpdateTest, SimpleDynamicUpdateTest 2021-02-08 16:42:21 +01:00
Andrea Boriero 8af3b9ccbe HHH-14424 When enhanced as a proxy is enabled with dirty checking, on flush uninitialized entities containing collections are updated and all the fields are set to null 2021-02-08 14:40:49 +00:00
Andrea Boriero fb5f02b520 HHH-14424 Add test for issue 2021-02-08 14:40:41 +00:00
Christian Beikov d4b3bf3a97 HHH-14408 Defer property type access until integrators ran 2021-02-05 09:15:10 +00:00
Christian Beikov 6ee8135a29 HHH-14408 Test that user type provided by integrator is properly registered 2021-02-05 09:15:10 +00:00
Yanming Zhou 20f6d4f5db HHH-14229 Fix unexpected foreign key creation
before this commit, foreign key is created even ConstraintMode.NO_CONSTRAINT present on the @ManyToOne side

(cherry picked from commit 633d0f08d6)
2021-02-01 18:03:47 -08:00
Yanming Zhou 96ead8aad6 HHH-14253 support ConstraintMode.PROVIDER_DEFAULT
Provide an option to skip foreign key creation for ConstraintMode.PROVIDER_DEFAULT

(cherry picked from commit 88acc9511b)
2021-02-01 17:59:25 -08:00
Gail Badner 95ff7ae28a HHH-13944 : Added "join fetch" and one-to-many test cases
(cherry picked from commit 0e75b4f3b5)
2021-02-01 14:21:04 -08:00