Steve Ebersole
f935d2b8e1
HHH-14923 - Allow CriteriaQuery to determine its "return type" as part of setting the selection
2021-11-10 09:12:53 -06:00
Jan Schatteman
2d38df66fd
Updated test to JUnit5 to remove reference to Dialect subclass
...
Moved it back for now to the old location, since it fails with a
non-related error that will have to be looked at as soon as there is an
implementation for composite sub-types
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-11-10 08:37:29 +01:00
Steve Ebersole
599b0ba39f
HHH-14919 - Improve handling for java.sql.Date, Time and Timestamp
2021-11-09 07:18:09 -06:00
Andrea Boriero
9c9a326ae6
Fix Dialect#BatchLoadSizingStrategy#determineOptimalBatchLoadSize taking into account org.hibernate.cfg.AvailableSettings#IN_CLAUSE_PARAMETER_PADDING
2021-11-09 12:16:41 +01:00
Andrea Boriero
53ad8d36e2
HHH-14876 Fix BatchLoadSizingStrategy#determineOptimalBatchLoadSize()
2021-11-09 12:16:41 +01:00
Andrea Boriero
f9d0b7d069
HHH-14876 Parameter padding for IN clauses doesn't work in Hibernate 6.0.0.Beta1
2021-11-09 12:16:41 +01:00
Andrea Boriero
3f6a782760
Fix ScrollableCollectionFetchingTest Hana db failures
2021-11-09 12:12:43 +01:00
Andrea Boriero
e9a933fe68
Merge remote-tracking branch 'upstream/main' into wip/6.0_merge
2021-11-09 10:50:16 +01:00
Yoann Rodière
2e1f7b5d89
HHH-14918 Test entity with composite ID containing an association to another entity which itself has a composite ID containing an association to another entity
2021-11-08 16:52:09 +01:00
Yoann Rodière
ccd58ee499
HHH-14918 Always process components containing an ID copy as we would any other FK
2021-11-08 16:52:09 +01:00
Steve Ebersole
0eee5ff5b0
HHH-14905 - Verify that custom JavaType and JdbcType registration combo works
2021-11-05 10:35:21 -05:00
Steve Ebersole
9fec060fe2
HHH-14914 - Passing an ExtendedBeanManager which is never notified leads to runtime errors
2021-11-04 15:49:11 -05:00
Steve Ebersole
0ea110aea2
HHH-14913 - sub-query modifiers are ignored
2021-11-04 14:53:38 -05:00
Andrea Boriero
b70487546e
Code refactoring
2021-11-04 19:43:04 +01:00
Steve Ebersole
0b46966096
HHH-14905 - Verify that custom JavaType and JdbcType registration combo works
2021-11-04 13:11:33 -05:00
Steve Ebersole
31eb3b82c5
HHH-14905 - Verify that custom JavaType and JdbcType registration combo works
2021-11-04 13:11:33 -05:00
Steve Ebersole
34cdd3077c
HHH-14905 - Verify that custom JavaType and JdbcType registration combo works
2021-11-04 13:11:33 -05:00
Andrea Boriero
e28d61330e
Derby dialect supportsResultSetPositionQueryMethodsOnForwardOnlyCursor should return false
2021-11-04 12:39:29 -05:00
Andrea Boriero
0facaf5632
Re-enable additional scrollable fetch test
2021-11-04 12:39:29 -05:00
Andrea Boriero
9b569932d2
Fix DynamicBatch loading
2021-11-04 12:39:29 -05:00
Andrea Boriero
29e22c68ac
Fix SingleIdEntityLoaderDynamicBatch#load() method
2021-11-04 12:39:29 -05:00
Andrea Boriero
696eea9bbe
Fix lazy loading of lazy basic attributes when an entity is fetched
2021-11-04 12:39:29 -05:00
Andrea Boriero
3dedb22365
Implement FetchingScrollableResultsImpl
2021-11-04 12:39:29 -05:00
Andrea Boriero
9d8fbfb727
Bytecode enhamcement fix unnecessary query for an optional OneToOne
2021-11-04 12:39:29 -05:00
Fabio Massimo Ercoli
47605bf93b
Navigate all possible targetKeyPropertyNames
2021-11-02 16:28:27 +01:00
Fabio Massimo Ercoli
fdcb07420f
Defer the extraction of the sub part
...
When the foreign key is set to the to-one attribute, this is necessary to have an entity identity mapping using the foreign key SQL attributes
2021-11-02 16:28:27 +01:00
Fabio Massimo Ercoli
de0dffe105
Allow ast navigation embedded > to-one
2021-11-02 16:28:27 +01:00
Fabio Massimo Ercoli
4e216a121c
Test embedded > to-one | embedded
2021-11-02 16:28:27 +01:00
Sanne Grinovero
6c53a9d1ab
HHH-14903 The new getConfiguredJdbcBatchSize method optimisation should apply to StatelessSession as well
2021-11-01 10:28:11 +00:00
Karel Maesen
eef65b5bc2
Resolve to SqlTypes.GEOMETRY for Postgresql/CockroachDB
2021-10-31 14:52:00 +01:00
Steve Ebersole
46877fdcb4
HHH-14902 - JpaCompliantLifecycleStrategy$BeanImpl#initialize causes a deployment failure due to CDI Bean Manager not being available
2021-10-29 15:21:42 -05:00
Andrea Boriero
98a00ea9a1
Fix java.time.temporal.UnsupportedTemporalTypeException: Unsupported field: Year when calling JdbcDateJavaTypeDescriptor#toString()
2021-10-29 11:42:42 +02:00
Andrea Boriero
47593f6412
Merge remote-tracking branch 'upstream/main' into wip/6.0_merge
2021-10-28 14:18:32 +02:00
Sanne Grinovero
a2cbe10e07
HHH-14901 Refactor shared code into a single reused method
2021-10-27 11:58:10 +01:00
Sanne Grinovero
cc7498cf3c
HHH-14901 Introduce a new BatchBuilder implementation, suitable for immutable code deployments
2021-10-27 11:58:10 +01:00
Sanne Grinovero
7f71dca1ae
HHH-14899 StaleObjectStateExceptionHandlingTest should expect a StaleStateException
2021-10-26 16:34:24 +01:00
Sanne Grinovero
634c257d93
HHH-14899 Rename test class to fix typo: StateObjectStateExceptionHandlingTest to StaleObjectStateExceptionHandlingTest
2021-10-26 16:34:24 +01:00
Sanne Grinovero
7ff73d178f
HHH-14899 Inconsistent default value for STATEMENT_BATCH_SIZE
2021-10-26 16:34:24 +01:00
Sanne Grinovero
959dfea66f
HHH-14899 Have SessionImpl override the default method getConfiguredJdbcBatchSize
2021-10-26 16:34:24 +01:00
Sanne Grinovero
5ad60c4b61
HHH-14900 No need in tests to shadow the jdbcBatchSize field of BatchBuilderImpl extensions
2021-10-26 16:34:24 +01:00
Sanne Grinovero
aba67cfe6e
HHH-14900 BatchBuilderImpl doesn't need to be Configurable
2021-10-26 16:34:24 +01:00
Sanne Grinovero
9ecd1799a0
HHH-14900 Since the BatchBuilderImpl Service is shared, mutable field jdbcBatchSize should be marked volatile
2021-10-26 16:34:24 +01:00
Sanne Grinovero
8a2869a09a
HHH-14900 Remove dead logger
2021-10-26 16:34:24 +01:00
Steve Ebersole
0925e48ebf
more user-guide basic-type chapter work;
...
renamed `JavaTypeDescriptorRegistry` to `JavaTypeRegistry`;
renamed `JdbcTypeDescriptorRegistry` to `JdbcTypeRegistry`
2021-10-25 13:55:53 -05:00
Andrea Boriero
e588245f73
Fix checkstyle error
2021-10-25 18:09:54 +02:00
Andrea Boriero
5d62eac4b9
Merge remote-tracking branch 'upstream/main' into wip/6.0_merge
2021-10-25 18:05:46 +02:00
Andrea Boriero
67c2c51d47
Re-enabled additional tests
2021-10-25 15:57:39 +02:00
Christian Beikov
6745f71f88
Add support for from-space wide explicit join ordering and thus support entity/cross joins on all JpaFrom elements
2021-10-25 09:15:25 +02:00
Christian Beikov
1456a2dd7f
Render implicit joins as nested table group joins instead of sub queries
2021-10-25 09:15:25 +02:00
Christian Beikov
756afb8788
Fix collection table cleanup issues for all strategies
2021-10-25 09:15:25 +02:00
Christian Beikov
fa3101c29e
Fix join predicate rendering and fix support for implicit joins in the ON clause
2021-10-25 09:15:25 +02:00
Jan Schatteman
8fc0e05930
Re-enable WithClauseTest
...
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-10-25 09:15:25 +02:00
Steve Ebersole
a3c36af5c6
HHH-14877 - FetchMode.SUBSELECT ignored
...
- cleanup
2021-10-21 16:47:21 -05:00
Steve Ebersole
aef0775946
HHH-14877 - FetchMode.SUBSELECT ignored
...
- fixed additional tests
2021-10-21 16:47:21 -05:00
Steve Ebersole
96c0b04658
HHH-14877 - FetchMode.SUBSELECT ignored
...
- fixed Oracle errors related to follow-on locking
2021-10-21 16:47:20 -05:00
Steve Ebersole
653de50aa5
HHH-14877 - FetchMode.SUBSELECT ignored
...
Worked on FetchMode.SUBSELECT support but also worked on a few general collection fetch issues and a few improvements
2021-10-21 16:47:20 -05:00
Steve Ebersole
aca86036d3
HHH-14877 - FetchMode.SUBSELECT ignored
...
Worked on FetchMode.SUBSELECT support but also worked on a few general collection fetch issues and a few improvements
2021-10-21 16:47:20 -05:00
Steve Ebersole
db70fd38dd
HHH-14877 - FetchMode.SUBSELECT ignored
...
Worked on FetchMode.SUBSELECT support but also worked on a few general collection fetch issues and a few improvements
2021-10-21 16:47:20 -05:00
Steve Ebersole
e8e62c4d6c
HHH-14877 - FetchMode.SUBSELECT ignored
2021-10-21 16:47:20 -05:00
Steve Ebersole
b5558307a9
Clean up various legacy "read path" contracts
...
- clean-up unused Type methods
* Type#nullSafeGet
* Type#hydrate
* Type#resolve
* Type#getSemiResolvedType
* Type#semiResolve
* related
- start removing usage of Tuplizer
- start removing usage of legacy Tuplizer-based Instantiator
- drop `EntityMode` completely
- preliminary clean-up of EntityTuplizer
- preliminary clean-up of ComponentTuplizer
2021-10-21 16:26:50 -05:00
Steve Ebersole
c34ea34f6b
Clean up various legacy "read path" contracts
...
- clean-up unused Type methods
* Type#nullSafeGet
* Type#hydrate
* Type#resolve
* Type#getSemiResolvedType
* Type#semiResolve
* related
- start removing usage of Tuplizer
- start removing usage of legacy Tuplizer-based Instantiator
- Drop `EntityMode` completely
2021-10-21 16:26:49 -05:00
Steve Ebersole
d2530df5ac
Clean up various legacy "read path" contracts
...
- clean-up unused Type methods
* Type#nullSafeGet
* Type#hydrate
* Type#resolve
* Type#getSemiResolvedType
* Type#semiResolve
* related
- start removing usage of Tuplizer
- start removing usage of legacy Tuplizer-based Instantiator
2021-10-21 16:26:49 -05:00
Steve Ebersole
3efaec2cff
Clean up various legacy "read path" contracts
...
- clean-up unused Type methods
* Type#nullSafeGet
* Type#hydrate
* Type#resolve
* Type#getSemiResolvedType
* Type#semiResolve
* related
- start removing usage of Tuplizer
- start removing usage of legacy Tuplizer-based Instantiator
2021-10-21 16:26:49 -05:00
Steve Ebersole
62f761732d
Clean up various legacy "read path" contracts
...
- clean-up unused Type methods
* Type#nullSafeGet
* Type#hydrate
* Type#resolve
* Type#getSemiResolvedType
* Type#semiResolve
* related
- start removing usage of Tuplizer
- start removing usage of legacy Tuplizer-based Instantiator
2021-10-21 16:26:49 -05:00
Steve Ebersole
cf36d17fac
Clean up various legacy "read path" contracts
...
* Type#nullSafeGet
* Type#hydrate
* Type#resolve
* Type#getSemiResolvedType
* Type#semiResolve
* related
2021-10-21 16:26:49 -05:00
Steve Ebersole
91e29358be
HHH-14857 - Deprecations in preparation for 6
2021-10-21 16:13:55 -05:00
Steve Ebersole
e4b56b9271
HHH-14857 - Deprecations in preparation for 6
2021-10-21 13:52:33 -05:00
Steve Ebersole
54ea27a4d5
improve hibernate-core-jakarta build
2021-10-21 12:25:49 -05:00
Christian Beikov
3d27f61221
Fix non-deterministic time based test
2021-10-20 16:19:22 +02:00
bb7133
ae8bedfa6d
update wrong SkipForDialect
2021-10-20 16:19:22 +02:00
bb7133
5bd27eb853
HHH-14576 : Introduce the dialect for TiDB
2021-10-20 16:19:22 +02:00
Fabio Massimo Ercoli
00aa4addec
HHH-14890 Add javadoc for interpretToOneKeyDescriptor(s)
2021-10-20 15:54:25 +02:00
Fabio Massimo Ercoli
70a19bae68
HHH-14890 Interpret nested ToOne key descriptor
2021-10-20 15:54:25 +02:00
Fabio Massimo Ercoli
1f3f3e2639
HHH-14890 Test mapped by on embeddable
2021-10-20 15:54:25 +02:00
Christian Beikov
98de63d0a1
Handle keywords initialization for dialects through DialectResolutionInfo and un-deprecate Dialect#getKeywords
2021-10-20 15:02:48 +02:00
Christian Beikov
ae9d99a32c
Handle the fact that PostgreSQL uses a backslash as default escape character in the like predicate
2021-10-20 15:02:48 +02:00
Higor Tavares
2f52c8024c
remove the commented code
2021-10-20 10:37:14 +02:00
Andrea Boriero
9c2c7e13dd
HHH-14875 Slow query log seems to be missing in Hibernate 6.0.0.Beta1
2021-10-19 17:30:54 +02:00
Andrea Boriero
dd36e349b1
Merge branch 'wip/6.0_merge' into wip/6.0
2021-10-19 16:36:48 +02:00
Christian Beikov
a4e406a54e
* Add SqlTypes as analogy to java.sql.Types containing constants for Hibernate specified types
...
* Add FormatMapper for a pluggable JSON serialization and deserialization strategy
* Add native UUID type support for H2, Cockroach, PostgreSQL
* Add native INET type support for Cockroach, PostgreSQL
* Add native JSON type support for MySQL, Cockroach, PostgreSQL
* Add native INTERVAL SECOND type support for H2, Cockroach, PostgreSQL
* Add fallback JdbcTypes for new SqlTypes
* Register column types for new SqlTypes
* Add support for BasicTypeReference in TypedParameterValue
* Fix a lot of method signatures with respect to type parameter issues
* Fix CustomType, UserType and EnhancedUserType with respect to type parameters
* Get rid of StringRepresentableType and some other unused deprecated methods
2021-10-19 16:33:36 +02:00
Christian Beikov
541302a511
Get rid of most basic type subclasses
2021-10-19 16:33:36 +02:00
Christian Beikov
4f861e13ba
Properly handle SQLFunction registrations
2021-10-19 16:33:36 +02:00
Andrea Boriero
7f46f11f3b
Merge remote-tracking branch 'upstream/main' into wip/6.0_merge
2021-10-19 16:23:07 +02:00
Andrea Boriero
6ddf3530fa
EntityValuedFetchable add isOptional and isUnwrapproxy methods
2021-10-19 13:13:47 +02:00
Andrea Boriero
6ffcee44a6
search second level cache if proxy entity metamodel has subclasses
2021-10-19 13:13:47 +02:00
Andrea Boriero
1ffa1347a3
Rename ToOneAttributeMapping isInternalLoadNullable to isOptional
2021-10-19 13:13:47 +02:00
Andrea Boriero
f02ffde061
Re-enabled additional tets
2021-10-19 13:13:47 +02:00
Andrea Boriero
ad5326a8ce
Re-enabled additional tests
2021-10-19 13:13:47 +02:00
Andrea Boriero
73452ae61f
Fix ToOne with Ignore not found lazy loading
2021-10-19 13:13:47 +02:00
Andrea Boriero
d95dad597c
Re-enabled additional tests
2021-10-19 13:13:47 +02:00
Andrea Boriero
449d4adc27
Fix cascade loader not join associations after first collection
2021-10-19 13:13:47 +02:00
Andrea Boriero
57e2d25dd3
Re-enabled additional tests
2021-10-19 13:13:47 +02:00
Andrea Boriero
dcab4bf7bf
Fix unfetched collection assembling
2021-10-19 13:13:47 +02:00
Andrea Boriero
d616f2aa55
Fix ToOneAttributeMapping tableGroup creation
2021-10-19 13:13:47 +02:00
Andrea Boriero
fa694c5d41
Re-enabled additional tests
2021-10-19 13:13:47 +02:00
Andrea Boriero
563ee45530
Fix delayed entity fetch loading trying to instantiate abstract class
2021-10-19 13:13:47 +02:00
Andrea Boriero
7eccda9f36
Fix java.lang.ClassCastException: org.hibernate.internal.StatelessSessionImpl cannot be cast to org.hibernate.event.spi.EventSource
2021-10-19 13:13:47 +02:00
Christian Beikov
a3920e5892
Small test fixes. Fix unwraps and mutation strategy configuration
2021-10-19 11:12:26 +02:00
Sanne Grinovero
9dd6cd06c9
HHH-14882 StandardStack needs to support null entries
2021-10-18 13:11:46 +01:00
Sanne Grinovero
ef3fe11ae6
HHH-14882 Minor implementation optimisations in internal StandardStack
...
The current StandardStack implementation is based on a LinkedList, which is well known to be a suboptimal choice; this should be switched to a lazily allocated ArrayDeque.
2021-10-18 13:11:46 +01:00
Sanne Grinovero
6008264711
HHH-14816 Optimise LockMode#fromExternalForm for common case
2021-10-18 12:19:44 +01:00
Sanne Grinovero
3bee3a1c79
HHH-14816 Minor refactoring of LockModeTypeHelper conversions
2021-10-18 12:19:44 +01:00
Dariush Moshiri
8e0f0b4123
HHH-14816 Can not set lock mode with QueryHint due to type case problem
2021-10-18 12:19:44 +01:00
Andrea Boriero
c545cee28c
Merge remote-tracking branch 'upstream/main' into wip/6.0_merge
2021-10-15 12:07:14 +02:00
Yoann Rodière
8afce5b5ed
HHH-14869 Fix CallbackRegistryImpl#registerCallbacks considering all given callbacks have the same type
2021-10-15 10:05:29 +02:00
Yoann Rodière
965f5bd925
HHH-14869 Extract JPA listener definitions when building metadata rather than when creating the SessionFactory
2021-10-15 10:05:29 +02:00
Andrea Boriero
7b5e8de7bf
Merge remote-tracking branch 'upstream/main' into wip/6.0_merge
2021-10-14 18:45:09 +02:00
Yoann Rodière
97f75f2aeb
HHH-14881 Test attribute converters provided through CDI and configured through orm.xml
2021-10-14 17:07:29 +02:00
Yoann Rodière
7cc0c8370b
HHH-14881 Allow providing attribute converters through CDI when configured through orm.xml
2021-10-14 17:07:29 +02:00
Yoann Rodière
fc636995c3
HHH-14880 orm.xml: Take into account <package> for <converter class="...">
2021-10-14 15:22:40 +02:00
Andrea Boriero
4323f9f011
HHH-14874 Lazy loading of basic attributes in different @LazyGroups throws ArrayIndexOutOfBoundsException
2021-10-13 18:33:19 +02:00
Andrea Boriero
3b47b85ce8
HHH-14874 Add test for issue
2021-10-13 18:33:19 +02:00
Andrea Boriero
cc31223b78
Re-enabled additional tests
2021-10-13 18:33:19 +02:00
Andrea Boriero
4543ab176b
Re-enabled additional tests
2021-10-12 15:20:24 +02:00
Andrea Boriero
5f6e53334c
HHH-13766 Add test for issue
2021-10-12 13:47:09 +02:00
Andrea Boriero
9b48207ba0
Re-enabled additional test
2021-10-12 12:09:15 +02:00
Andrea Boriero
6b5cb2cfc4
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-10-12 11:49:54 +02:00
Yoann Rodière
e93d33be16
Have SessionFactory#getMetamodel() return a JpaMetamodel
...
It just makes sense, since JpaMetamodel is Hibernate ORM's
extension of jakarta.persistence.metamodel.Metamodel,
and SessionFactory#getMetamodel() is Hibernate ORM's extension
of EntityManager#getMetamodel().
2021-10-11 17:40:30 -05:00
Yoann Rodière
a16305e01f
Minor cleanup of MappingMetamodelImpl
2021-10-11 17:40:30 -05:00
Yoann Rodière
0c27e3428d
Remove a few redundant method overrides in metamodel interfaces
2021-10-11 17:40:30 -05:00
Steve Ebersole
0be2bcc0ca
make Antlr runtime an explicit implementation dependency
2021-10-11 13:55:56 -05:00
Steve Ebersole
48068e0311
HHH-14857 Deprecations in preparation for 6
2021-10-11 19:36:23 +01:00
Steve Ebersole
cbb6b3820b
clean-up from rebase
2021-10-11 13:13:53 -05:00
Steve Ebersole
686d8fcbf1
HHH-14870 - Rename {Xyz}TypeDescriptor as {Xyz}Type
...
* `JavaTypeDescriptor` -> `JavaType`
* `JdbcTypeDescriptor` -> `JdbcType`
2021-10-11 13:13:13 -05:00
Steve Ebersole
3a0065eea4
HHH-14870 - Rename {Xyz}TypeDescriptor as {Xyz}Type
...
* `JavaTypeDescriptor` -> `JavaType`
* `JdbcTypeDescriptor` -> `JdbcType`
2021-10-11 13:11:32 -05:00
Steve Ebersole
7b61966882
dropped no-longer-used no-op impls intended for annotations
2021-10-11 12:10:43 -05:00
Christian Beikov
ba350d13c6
Handle TimeZoneStorage annotation
2021-10-11 16:11:46 +02:00
Christian Beikov
548df627e6
Implement global configuration and sketch out annotations for time zone storage configuration. Move type tests and add skips for some tests running into H2 bugs. Also, fix some jdbc type assertion tests
2021-10-11 16:11:46 +02:00
Christian Beikov
597f4bdf6a
Get rid of JdbcTypeDescriptor remapping
2021-10-11 16:11:46 +02:00
Yoann Rodière
88a0afc8e2
HHH-13295 Test @EmbeddedId + @MapsId targeting a derived entity
2021-10-11 11:13:19 +01:00
Yoann Rodière
7906a27b6a
HHH-13295 Always perform @MapsId's second pass after entity ID second passes
2021-10-11 11:13:19 +01:00
Steve Ebersole
ac1a30f808
HHH-12623 - Improve Javadoc comments for QueryHints.html#NATIVE_SPACES
2021-10-09 08:10:53 -05:00
Steve Ebersole
fbba2d49a9
test failures from custom-type work
2021-10-08 09:46:53 -05:00
Steve Ebersole
ede52e9aba
HHH-14856 - Introduce @CustomType;
...
HHH-14865 - Re-work @Any and @ManyToAny support;
HHH-14863 - Compositional definition of basic value mappings;
HHH-14864 - Drop legacy Type-based annotations
* documentation work
* support for using most of the new mapping annotations related to basic and any mappings as meta-annotations
* support for `@Mutability` on AttributeConverter implementations
* additional tests in the User Guide's BitSet mapping Case Study
2021-10-07 16:46:35 -05:00
Steve Ebersole
abc8225e9d
at the moment we expose `antlr` as an implementation dependency, which is exposed as a compile dependency. Instead use `antlr_runtime` as a runtime-only dependency and `antlr` for the `AntlrPlugin`
2021-10-07 13:10:53 -05:00
Steve Ebersole
95aa8246ed
HHH-14856 - Introduce @CustomType;
...
HHH-14865 - Re-work @Any and @ManyToAny support;
HHH-14863 - Compositional definition of basic value mappings;
HHH-14864 - Drop legacy Type-based annotations
layer in missed support for `@MapKeyClass` and `@ElementCollection#targetClass` in BasicValue resolution as part of BasicValueBinder handling
2021-10-07 12:17:42 -05:00
Steve Ebersole
9ad34c21d4
HHH-14856 - Introduce @CustomType;
...
HHH-14863 - Compositional definition of basic value mappings;
HHH-14864 - Drop legacy Type-based annotations;
HHH-14865 - Re-work @Any and @ManyToAny support;
* re-use BeanInstanceProducer
* Removed `@CollectionId#type`
* Change `@Any` / `@ManyToAny`
* Removed `@MapKeyType`
* Removed `@TypeDef`
* Removed `@TypeDefs`
* Removed `@Type`
* Removed `@AnyMetaDefs`
* Removed `@AnyMetaDef`
* Removed `@MetaValue`
2021-10-07 10:01:21 -05:00
Christian Beikov
710ebe57b0
Get rid of using specialized BasicType implementations and references to those and instead use a BasicTypeReference that is lazily resolved
2021-10-07 08:15:53 +02:00
Christian Beikov
1cb6ff8916
Cleanup naming of JavaTypeDescriptor and JdbcTypeDescriptor implementations. Get rid of PrimitiveType, IdentifierType, DiscriminatorType and AllowableTemporalParameterType
2021-10-07 08:15:53 +02:00
Christian Beikov
653f62ac60
Move VersionType logic to VersionJavaTypeDescriptor
2021-10-07 08:15:53 +02:00
Christian Beikov
81e66fa970
Get rid of LiteralType
2021-10-07 08:15:53 +02:00
Christian Beikov
bfe2da9d4f
Move type adjustment from AdjustableBasicType to AdjustableJdbcTypeDescriptor
2021-10-07 08:15:53 +02:00
Andrea Boriero
a6a61f65d6
Fix determining the correct ValueBinder for IN ProcedureParameter
2021-10-05 15:39:58 +02:00
Andrea Boriero
0941ac7da1
Native query as a function call is no longer supported
2021-10-05 15:39:58 +02:00
Andrea Boriero
8276bd569a
Implement ParameterMementoImpl#resolve() method
2021-10-05 15:39:58 +02:00
Andrea Boriero
72d06c164a
Fix issue with ResultSetMappig for classes
2021-10-05 15:39:58 +02:00
Andrea Boriero
dd43a3923b
Fix typo and minor improvement
2021-10-05 15:39:58 +02:00
Andrea Boriero
18fee9cf5a
Fix Delaying Basic attribute fetching
2021-10-05 15:39:58 +02:00
Andrea Boriero
b872d8ad74
Fix CoercionException conversion to IllegalArgumentException for Query parameter binding
2021-10-05 15:39:58 +02:00
Andrea Boriero
8df7a3ab16
Use ResultSetMapping from ProcedureCall instead of creating a new one
2021-10-05 15:39:58 +02:00
Andrea Boriero
95486ce5b1
Implementing Procedure Call
2021-10-05 15:39:58 +02:00
Andrea Boriero
6931635c4f
Implementing ProcedureParamBindings
2021-10-05 15:39:58 +02:00
Christian Beikov
d4007c5071
Fix fetching from a treated type and cleanup naming for collection fetching as well as fix bugs that IMO hid behind this bad naming
2021-10-05 15:18:38 +02:00
Christian Beikov
9e83129fc3
Change JavaTypeDescriptor#fromString to accept a CharSequence instead of String and introduce CharSequence utilities to avoid creating intermediate strings
2021-10-05 15:18:38 +02:00
Christian Beikov
40ccad1db2
Get rid of deprecated dialect methods, JoinFragment, LegacyLimitHandler, LegacySequenceSupport, CaseFragment, SelectFragment etc.
2021-10-05 15:18:38 +02:00
Christian Beikov
f416b728a9
Get rid of RowSelection, QueryParameters and related deprecated functionality
2021-10-05 15:18:38 +02:00
Christian Beikov
1246a22c83
Remove some row selection uses
2021-10-05 15:18:38 +02:00
Christian Beikov
c5baae7e11
Improve SQL rendering performance by avoiding intermediate String objects
2021-10-05 15:18:38 +02:00
Christian Beikov
2cb1078fe3
Fix some string literal parsing issues regarding escape sequences
2021-10-05 15:18:38 +02:00
Andrea Boriero
cef7988528
Re-enabled additional tests
2021-10-05 09:51:23 +02:00
Christian Beikov
6c49c55087
Fix setting null values on native queries for mysql/mariadb
2021-10-04 12:08:56 +02:00
Andrea Boriero
8c40de9cff
Merge remote-tracking branch 'upstream/main' into wip/6.0_merge_main_7
2021-10-01 11:34:10 +02:00
Steve Ebersole
ab2957d89f
HHH-14820 - Customized EnumType not working with hbm mapping in Hibernate 6
2021-09-30 14:57:30 -05:00
Steve Ebersole
c799f85801
HHH-14820 - Customized EnumType not working with hbm mapping in Hibernate 6
2021-09-30 11:53:51 -05:00
gtoison
bef0554eb7
HHH-14820 - Customized EnumType not working with hbm mapping in Hibernate 6 (Reproducer)
...
A simple unit test illustrating issue HHH-14820 : since Hibernate ORM 6
the custom NamedEnumUserType is only instantiated once (while there are
two enums configured with this type)
2021-09-30 09:09:07 -05:00
Christian Beikov
d8b984ed7f
Fix some column type definitions in dialects regarding their maximum capacities. Allow the dialect to resolve the length based on type code, type name, precision, scale and display size. Fix some dialect related issues with tests. Fix untyped null parameter binding issues
2021-09-30 13:52:31 +02:00
Christian Beikov
d5078456a2
NullnessLiteral cleanup
2021-09-30 13:52:31 +02:00
Christian Beikov
10e508dfe7
Add the Object type to the basic type registry and resolve it by Java type instead of referring to JavaObjectType or StandardBasicTypes.OBJECT_TYPE
...
Also add special JdbcTypeDescriptor implementations that resolve the parameter type or use a VARBINARY on null values, as needed for some dialects, which register these descriptors
2021-09-30 13:52:31 +02:00
Christian Beikov
05f643f208
Move some more jpa.test subpackages to orm.test
2021-09-30 13:52:31 +02:00
Christian Beikov
08b0a705e6
Remove `@NotImplementedYet` from some tests and fix some other tests
2021-09-30 13:52:31 +02:00
Christian Beikov
f1680fabcd
Fixes for the move of jpa.test.query to orm.test
...
* Allow JdbcTypeDescriptor to resolve JavaTypeDescriptor also based on precision/scale to support resolving VARCHAR(1) to Character
* Implement support for rendering comments and hints for DML statements.
* Implement support for tuple transformer
* Apply type inference on SQM parameters and put coercion behind `isLoadByIdComplianceEnabled` consistently
* Implement native query result type validation
* Fix some temporal type related resolving issues
* Fix parameter validation issue
* Apply delayed fetch builders for implicit basic attributes for result set mappings
* Use resolved JdbcTypeDescriptor and column length/scale to resolve recommended JdbcTypeDescriptor
* Fix type resolving for composite path sources
* Make ManagedDomainType implement AllowableParameterType
* Make DiscriminatorSqmPathSource implement AllowableParameterType
* Fix some id-class related path source issues
2021-09-30 13:52:31 +02:00
Christian Beikov
d4ecfbc1b8
Move jpa.test.query to orm.test
2021-09-30 13:52:31 +02:00
Andrea Boriero
33a2c88279
Re-enabled additional tests
2021-09-29 10:41:24 +02:00
Steve Ebersole
120019b343
HHH-14848 - Move Ant tasks + support from hibernate-core into tooling/hibernate-ant
2021-09-29 02:11:49 -05:00
Steve Ebersole
998caa56af
HHH-14848 - Move Ant tasks + support from hibernate-core into tooling/hibernate-ant
2021-09-29 01:31:47 -05:00
Steve Ebersole
c68322df99
HHH-14846 - Drop JMX integration
2021-09-29 01:09:50 -05:00
Steve Ebersole
8a8a92ca5e
HHH-14844 - Drop JACC integration
2021-09-29 01:08:07 -05:00
Steve Ebersole
986d65a288
HHH-14837 - Move to Jakarta EE
...
More settings work
2021-09-28 19:01:28 -05:00
Steve Ebersole
ff4db00aec
HHH-14847 - Deprecate JMX support
2021-09-28 15:27:11 +01:00
Andrea Boriero
05b2ca3b83
Rename AvailbaleSetting JAKARTA_DIALECT_DB_VERSION to JAKARTA_HBM2DDL_DB_VERSION and fix its values
2021-09-28 08:40:45 -05:00
Andrea Boriero
60b3d4ec8f
Add `ASE` to Sybase database names recognition
2021-09-28 08:40:45 -05:00
Steve Ebersole
ba9c3201eb
HHH-14845 - Deprecate JACC support
2021-09-28 11:21:03 +01:00
Steve Ebersole
e59028fbcf
HHH-14845 - Deprecate JACC support
2021-09-28 11:21:03 +01:00
Steve Ebersole
35b9513943
HHH-14845 - Deprecate JACC support
2021-09-28 11:21:03 +01:00
Steve Ebersole
84629e314d
HHH-14837 - Move to Jakarta EE
...
fix-ups from the latest rebase (Bean Validation integration);
still looking into the incompatible class changes problem
2021-09-27 10:02:20 -05:00
Steve Ebersole
f07a36b78f
HHH-14837 - Move to Jakarta EE
...
fix-ups from the latest rebase
2021-09-27 08:35:26 -05:00
Steve Ebersole
7bc1d55cdd
improved aggregated javadoc generation
2021-09-27 08:21:36 -05:00
Steve Ebersole
e422d913db
HHH-14837 - Move to Jakarta EE
...
improved support for schema tooling settings
2021-09-27 08:21:36 -05:00
Steve Ebersole
679a919203
HHH-14837 - Move to Jakarta EE
...
improved support for schema tooling settings
2021-09-27 08:21:36 -05:00
Steve Ebersole
f7921f536e
HHH-14837 - Move to Jakarta EE
...
tests for Jakarta JPA XSDs
2021-09-27 08:21:36 -05:00
Steve Ebersole
a9387033b2
HHH-14837 - Move to Jakarta EE
...
- fixups
2021-09-27 08:21:36 -05:00
Steve Ebersole
53a274f7db
HHH-14837 - Move to Jakarta EE
...
- prefer `jakarta.persistence.*` settings (*)
- deprecation warnings for `javax.persistence.*` settings (*)
[*] - not all cases yet; need to discuss
2021-09-27 08:21:36 -05:00
Steve Ebersole
089a3f86ae
HHH-14837 - Move to Jakarta EE
...
preliminary transformation;
only `javax.persistence.*` settings supported atm
2021-09-27 08:21:27 -05:00
Andrea Boriero
d43b9940b9
Add hql execution to Statistics
2021-09-25 11:52:03 +02:00
Andrea Boriero
e62b3710a8
Improved JdbcSelectExecutorStandardImpl#resolveJdbcValuesSource() method
2021-09-25 11:52:03 +02:00
Andrea Boriero
4a0351b157
Improved JdbcSelectExecutorStandardImpl#getResultSize() method
2021-09-25 11:52:03 +02:00
Andrea Boriero
573d146046
Removed Dialect#areStringComparisonsCaseInsensitive() method
2021-09-25 11:52:03 +02:00
Andrea Boriero
ca83c6ca7e
HHH-13140 Criteria API multiselect aliases are not passed through to the JPQL query and they are not available in ResultTransformer
2021-09-25 11:52:03 +02:00
Andrea Boriero
6cb13ddf0c
Fix join type for TableGroupJoin created from the Select clause
2021-09-25 11:52:03 +02:00
Andrea Boriero
504dd2c6b4
Fix AliasToMap converter for JPA Criteria
2021-09-25 11:52:02 +02:00
Andrea Boriero
fcfb2074f2
Fix TupleElement#getAlias() returning null
2021-09-25 11:52:02 +02:00
Andrea Boriero
9d131ce69f
Minor code cleaning
2021-09-25 11:52:02 +02:00
Andrea Boriero
b2aca3c846
Implemented QueryKey.ParameterBindingsMemento NO_PARAMETER_BINDING_MEMENTO
2021-09-25 11:52:02 +02:00
Andrea Boriero
ac1123be05
Fix NPE with cache key
2021-09-25 11:52:02 +02:00
Andrea Boriero
16f4a10908
Add hql query execution to Statistics
2021-09-25 11:52:02 +02:00
Andrea Boriero
19802edec1
Re-enabled additional tests
2021-09-25 11:52:02 +02:00
Andrea Boriero
70c09dfb54
Fix test failure after merge
2021-09-24 13:17:25 +02:00
Andrea Boriero
0b9a470685
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-09-24 12:50:56 +02:00
Gail Badner
c6e3bf2ef8
HHH-14835 : More changes to support SchemaMigrator/SchemaValidator using Hibernate Reactive
...
Add jira key to test case
2021-09-24 11:17:17 +01:00
Andrea Boriero
8cecdd3f43
HHH-14835 : Fix Sybase Connection#getSchema() throws an exception
...
(cherry picked from commit aaba4767fe
)
2021-09-24 11:17:17 +01:00
Gail Badner
dec331362c
HHH-14835 : More changes to support SchemaMigrator/SchemaValidator using Hibernate Reactive
...
Changes required for sequences to be created with a default catalog
2021-09-24 11:17:17 +01:00
Christian Beikov
340c1b3f61
HHH-11042 Implement tuple distinct count emulation
2021-09-23 18:04:02 +02:00
Christian Beikov
3ecc602852
Implement tuple count emulation
2021-09-23 18:04:02 +02:00
Christian Beikov
aa7b5529e9
Fix determining table groups for fetches and reuse joins for parsed paths. Fix determining correct table group for SqmFrom usages. Fix indexed access for plural paths
2021-09-23 18:04:02 +02:00
Christian Beikov
07f6d31d2b
Fix missing table reference issues by translating all SqmRoots and SqmJoins to proper path interpretations
2021-09-23 18:04:02 +02:00
Christian Beikov
e8d337828b
Fix bidirectional fetching issues
2021-09-23 18:04:02 +02:00
Christian Beikov
905227d2ed
Get rid of unnecessary sql tokens for joins and improve join counting for tests
2021-09-23 18:04:02 +02:00
Christian Beikov
582e7f84aa
Implement support for detecting bidirectional attribute name for many-to-one
2021-09-23 18:04:02 +02:00
Christian Beikov
3cf0d9f037
fixup! Move jpa.enhancement, jpa.graphs, jpa.ops, jpa.orphan, jpa.secondarytable, jpa.transaction, jpa.userguide, jpa.version and query.criteria packages
2021-09-23 18:04:02 +02:00
Christian Beikov
bc6022459d
Fix JPA Criteria parameter inference for case when expressions
2021-09-23 18:04:02 +02:00
Christian Beikov
e59f2b9761
Fix too eager collection fetching, wrong fetch timing determination and `entityAlias = :param` usages
2021-09-23 18:04:02 +02:00
Christian Beikov
6096bbdfa1
Move jpa.enhancement, jpa.graphs, jpa.ops, jpa.orphan, jpa.secondarytable, jpa.transaction, jpa.userguide, jpa.version and query.criteria packages
2021-09-23 18:04:02 +02:00
Jan Schatteman
5df67d8b43
Move and adapt tests from sql/storedproc
...
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-09-23 17:32:41 +02:00
Andrea Boriero
5b24b171da
Resolve collection key selection expressions for delayed collection fetches of dynamic fetch builders with the suffixed column alias of the referenced property name
2021-09-21 12:57:47 +02:00
Karel Maesen
2bdd10389b
HHH-14757 Use geolatte's JTSUtils
2021-09-21 11:55:41 +02:00
Karel Maesen
9316c161c7
HHH-14802 Update CockroachDB support for 6
2021-09-21 11:55:41 +02:00
Karel Maesen
0b9de79a7d
HHH-14800 Use TypeContributor to register spatial types
2021-09-21 11:55:41 +02:00
Andrea Boriero
61d1891f55
Re-enabled additional tests
2021-09-21 09:11:49 +02:00
Andrea Boriero
e466c52002
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-09-21 08:46:04 +02:00
Yanming Zhou
99f027166d
HHH-4369 Introduce @Comment for comment on column
2021-09-20 22:59:32 +01:00
Andrea Boriero
5ffed50f1f
HHH-14826 Fix failure of o.h.test.onetoone.cache.OneToOneCacheTest#OneToOneCacheByForeignKey()
2021-09-20 22:39:38 +01:00
Andrea Boriero
340b9012d9
HHH-14826 Extract issue specific tests from OneToOneCacheTest
2021-09-20 22:39:38 +01:00
Amit Mendapara
a652822ff5
HHH-14826 Fix regression caused by one-to-one L2 cache support
2021-09-20 22:39:38 +01:00
Amit Mendapara
b15433a49c
HHH-14826 Add test to check regression caused by OneToOne cache support
2021-09-20 22:39:38 +01:00
Yoann Rodière
5e542b16cb
HHH-14828 Remove final modifier from enhanced fields
...
We need to remove the final modifier if we want to address the possibility
of that field being lazy.
2021-09-20 22:34:24 +01:00
Yoann Rodière
d35b592762
HHH-14828 Do not enhance final field write access
2021-09-20 22:34:24 +01:00
Yoann Rodière
0b80bb73c9
HHH-14828 Enable bytecode enhancement logging in core tests
2021-09-20 22:34:24 +01:00
Yoann Rodière
1d3f9183e6
HHH-14828 Fix incorrect logging in FieldAccessEnhancer
2021-09-20 22:34:24 +01:00
Yoann Rodière
e0286ba4b4
HHH-14828 Test bytecode enhancement on entities/embeddables with a final field
2021-09-20 22:34:24 +01:00
Andrea Boriero
9dcca5f213
Fix issues after merge main branch
2021-09-17 15:34:46 +02:00
Andrea Boriero
6519b3bfcd
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-09-17 15:33:08 +02:00
Andrea Boriero
52c932cc1c
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-09-17 11:52:20 +02:00
Gail Badner
d17861d928
HHH-14794 : More changes to support SchemaMigrator/SchemaValidator using Hibernate Reactive
...
Changes required by SQL Server
2021-09-17 10:40:30 +01:00
ENTERPRISE-X64\bertiepinnock
24b9605c52
HHH-13661 | Added case to PostgreSQL Dialect to map client operation cancellation to QueryTimeoutException
2021-09-17 10:05:37 +02:00
Nathan Xu
ad6af3af7d
HHH-14413 fix issue that EntityUpdateAction increments version despite veto on update
2021-09-17 09:24:57 +02:00
Andrea Boriero
83e5ba0450
Re-enabled additional test
2021-09-16 16:57:58 +02:00
Andrea Boriero
7b6ee23f19
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-09-16 16:49:52 +02:00
Yoann Rodière
86ad83f0b5
HHH-14827 Fix @AssociationOverride/@PrimaryKeyJoinColumn at type level being ignored when also using orm.xml
2021-09-16 16:23:00 +02:00
Yoann Rodière
70d7ac6ecd
HHH-14827 Fix @AttributeOverride at type level being ignored when also using orm.xml
2021-09-16 16:23:00 +02:00
Yoann Rodière
170821c135
HHH-14827 Test using @AttributeOverride and also an orm.xml file
2021-09-16 16:23:00 +02:00