Steve Ebersole
69564cd7c8
HHH-14478 : Allow DialectResolvers to be discovered by ServiceLoader
2021-03-08 08:14:05 -06:00
Andrea Boriero
47f7ca7ff5
Clean up BasicValue
2021-03-08 11:58:31 +01:00
Christian Beikov
b225beb3cc
Fix processing state issues with insert-select statements
2021-03-08 11:43:40 +01:00
Christian Beikov
ee52989647
Don't build session factory and entity manager eagerly and stop enforcing id class implements Serializable
2021-03-08 11:43:39 +01:00
Andrea Boriero
f7d421b6ff
Fix NPE with DelayedCollectionInitializer
2021-03-08 09:28:53 +01:00
Chris Cranford
711fb53505
Resolve JavaTypeDescriptor, if not explicitly specified, for StandardRowReader
2021-03-08 09:21:45 +01:00
Chris Cranford
9591bbb185
Fix NPE with DelayedCollectionInitializer
...
Since the collectionInstance has not been resolved when asked to resolve the
collection key, provided an overridden method to not register the resolution
listener to avoid the NPE.
2021-03-08 09:19:48 +01:00
Chris Cranford
79d2569618
Don't add superfluous "and" when there is no discriminator filter
2021-03-08 09:09:41 +01:00
Steve Ebersole
21cca2bbc2
hibernate-testing cleanup
2021-03-05 14:12:25 -06:00
Steve Ebersole
2ee5ed0e52
hibernate-testing cleanup
2021-03-05 07:28:41 -06:00
Andrea Boriero
6250942e7f
Merge remote-tracking branch 'upstream/master' into wip/6.0
2021-03-05 11:18:14 +01:00
Andrea Boriero
cb603a337b
Removed use of EntityPersister#getEntityTuplizer()
2021-03-04 17:29:26 +01:00
Steve Ebersole
ddf434df7e
HHH-14469 - Support schema-tooling on sub-sets of the relational model known to Hibernate
...
- @BootstrapServiceRegistry
- Support for filtering at schema-tooling level
2021-03-04 09:42:45 -06:00
Gavin King
7b7597f40e
modernize Interceptor + Lifecycle interfaces
2021-03-04 15:24:02 +01:00
Gavin King
b3aa7d0794
remove Serializable id from the Tuplizer stuff
2021-03-04 15:24:02 +01:00
Gavin King
d4aa643630
type ids as Object instead of Serializable
2021-03-04 15:24:02 +01:00
Vlad Mihalcea
17c5fab50e
HHH-12338 - Incorrect metamodel for basic collections
2021-03-04 13:22:37 +01:00
Christian Beikov
abfa2de1d4
Try cast instead of inlining
2021-03-04 12:57:31 +01:00
Christian Beikov
abbbd2d3fb
Merge AbstractSqlAstWalker into AbstractSqlAstTranslator
2021-03-04 12:57:31 +01:00
Christian Beikov
1ea675d58d
Apply requested changes
2021-03-04 12:57:31 +01:00
Christian Beikov
003fddccb5
Implement support for special parameter rendering through functions to support using certain Derby functions with parameters
2021-03-04 12:57:31 +01:00
Yoann Rodière
fb079d077c
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 08:35:23 +01:00
Yoann Rodière
81071a4594
HHH-14439 Clean up expanded list parameters before re-executing a query
...
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
2021-03-04 08:35:23 +01:00
Vlad Mihalcea
ed3bbf15e4
HHH-13077 - Optimize query plan call count
2021-03-03 08:07:53 -06:00
johnniang
2d5d6061c5
HHH-14473 add test case
2021-03-03 11:06:13 +00:00
johnniang
f03dd44107
HHH-14473 Resolve managed class name with class loader as well
2021-03-03 11:06:13 +00:00
Sanne Grinovero
f7c85fad4a
HHH-14477 Log warnings about the use of Javassist as BytecodeProvider being deprecated
2021-03-03 10:57:35 +00:00
Gavin King
b6dc77280f
remove two unnecessary calls to deprecated getEntityTuplizer()
2021-03-03 08:58:28 +01:00
Christian Beikov
44f4f93a29
HHH-9182 Test and fix HQL rules to allow more expression types in aggregate functions
2021-03-03 08:34:12 +01:00
Gail Badner
34a361058d
HHH-14390 HHH-14466 : StackOverflowError loading inverse side of associations owned by associated entity ID
...
Improved code comments as recommended by Steve Ebersole.
2021-03-02 14:13:48 -08:00
Gail Badner
cb18fdb4f7
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
2021-03-02 14:13:47 -08:00
Gail Badner
2bacaabc37
HHH-14466 : StackOverflowError loading an entity with eager one-to-many if bidirectional and many-to-one side is the ID
2021-03-02 14:13:47 -08:00
Andrea Boriero
bd84bb69bd
Fix MetadataTest failures, the behaviour introduced by HHH-4702 has been reverted, SingularAttribute#getBindableJavaType() and SingularAttribute#getType().getJavaType() return Integer.class also for int attributes
2021-03-02 18:39:03 +01:00
Christian Beikov
59735d2329
HHH-14471 Fix concurrency issue due to builder sharing in DynamicBatchingEntityLoader
2021-03-02 18:11:47 +01:00
Christian Beikov
1714c022e2
HHH-11076 Log a warning if uninitialized collection unsets session when filters are enabled
2021-03-02 17:28:13 +01:00
Sanne Grinovero
eb639a2d95
HHH-14474 Method AbstractEntityPersister#getAppropriateUniqueKeyLoader also need to change in protected
2021-03-02 13:25:59 +00:00
Sanne Grinovero
17bffb08a5
HHH-14474 Style and formatting improvements
2021-03-02 10:26:58 +00:00
Gavin King
4fad616d4b
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:26:47 +00:00
Sanne Grinovero
6868c68278
HHH-14443 Formatting and style fixes
2021-03-01 16:13:02 +00:00
Francois van Delft
de3f3c1d74
HHH-14443 Add hashcode to ObjectTypeCacheEntry, so query cache can do a successfull lookup for queryies with AnyTypes
2021-03-01 16:05:38 +00:00
Andrea Boriero
70f8498fd6
Merge remote-tracking branch 'upstream/master' into wip/6.0
2021-03-01 12:02:58 +01:00
gbadner
a90aaa48b4
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 08:37:14 +01:00
Gail Badner
021b2741ab
HHH-14467 Simplify detection of *ToOne associations that are part of the entity identifier
2021-03-01 08:37:14 +01:00
Yoann Rodière
b6b83536e6
HHH-14467 Test referencing an entity whose ID is derived
...
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
2021-03-01 08:37:14 +01:00
Yoann Rodière
9b991310b5
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 08:37:14 +01:00
Christian Beikov
682cbc7d87
Simplify type resolving and ignore a test for Oracle
2021-02-25 16:24:10 +01:00
Christian Beikov
d4ffbea54f
Introduce callback in dialect to resolve the SqlTypeDescriptor from the Jdbc type code, precision and scale
2021-02-25 16:24:10 +01:00
Steve Ebersole
e5c239c7c8
natural-id caching
...
- on top of Christian's PR #3735 which fixes a problem with pulling entity snapshots from the database which effects natural-id handling and caused test failures here (b4 #3735 )
2021-02-25 09:08:59 -06:00
Christian Beikov
37b03ecc05
Properly handle parameters and null literals as plain select items
2021-02-25 12:08:49 +01:00
Christian Beikov
5b5254fbd6
Fix issues with inverse FK creation and related natural id issues
2021-02-25 12:08:49 +01:00