Andrea Boriero
088baa6e86
Fix compilation errors after merge
2021-11-16 17:35:44 +01:00
Andrea Boriero
8c5adc86d0
Merge remote-tracking branch 'upstream/main' into wip/6.0_merge_main_1
2021-11-16 17:23:06 +01:00
Chris Cranford
e155fc551e
HHH-14540 Don't share session-scoped interceptors with temp session
2021-11-16 15:27:51 +00:00
Jan Schatteman
db12d5a17a
Remove deprecated JPA_METAMODEL_GENERATION and JPA_METAMODEL_POPULATION from AvailableSettings
...
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-11-12 14:57:52 +01:00
Christian Beikov
38d1c122eb
Various fixes and move tests from test.jpa
...
* Implement parameter list expansion for native queries
* Fix empty subselect fetched collection initialization
* Implement support for nested table group joins to allow joins on the map-key
* Replace `getTableReference` with `resolveTableReference` where appropriate to distinguish which calls can cause table reference joins to be created
* Fix some table reference resolving issues with inverse embeddable model parts
* Use a Fetch for entity ids instead of a DomainResult
* Fix bidirectional fetching for collection initializtion
* Implement table reference join pruning for treat usages
* Implement strict JPA compliance for different parameter styles
* Ensure From nodes in Criteria are unique
* Add unique key support to DelayedEntityFetch
* Check if FetchParent is enhanced for lazy loading for DelayedEntityFetch
* Register entity instances under all possible EntityUniqueKey
* Introduce EntityJavaTypeDescriptor that implements equality based on object identity
2021-11-11 15:49:30 +01: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
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
Andrea Boriero
6b5cb2cfc4
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-10-12 11:49:54 +02:00
Steve Ebersole
48068e0311
HHH-14857 Deprecations in preparation for 6
2021-10-11 19:36:23 +01: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
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
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
Steve Ebersole
986d65a288
HHH-14837 - Move to Jakarta EE
...
More settings work
2021-09-28 19:01:28 -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
Christian Beikov
0af8755949
Backport of changes from 6314395edf
on
...
wip/6.0 (Fix connection leaks by properly closing service registries)
2021-09-13 17:32:18 +02:00
Christian Beikov
6314395edf
Fix connection leaks by properly closing service registries
2021-09-09 16:39:31 +02:00
Christian Beikov
dd6efa509b
Introduce internal init_sql config and by default enable ansinull for Sybase ASE
2021-09-02 16:54:46 +02:00
Christian Beikov
ec2b1c6756
Fix test for oracle
2021-09-02 16:54:46 +02:00
Christian Beikov
ea099e7e85
Fix some query caching issue related to pagination parameters and a small case sensitivity issue
2021-09-02 16:54:46 +02:00
Christian Beikov
c9a526999a
Ignore some tests that run into HSQLDB bugs
2021-09-02 16:54:46 +02:00
Christian Beikov
65016aaf42
Implement envers order fragment support by introducing an internal sqm function and re-enable all envers tests
2021-09-02 16:54:46 +02:00
Christian Beikov
04ac8b13c3
Fix some envers tests
2021-09-02 16:54:46 +02:00
Christian Beikov
062c3cd724
Make use of distinct predicate in envers
2021-09-02 16:54:46 +02:00
Andrea Boriero
a9725f4fca
Re-enabled additional envers tests
2021-08-31 16:17:24 +02:00
Steve Ebersole
6f60cd8918
improve discriminator handling
...
- use fetch/result as the distinction for whether to select Class / entity-name or the "underlying type" value for discriminator. The only time we'd have a DomainResult for the discriminator is for Query where the type is selected; all other times want the underlying type
2021-08-30 13:32:52 -05:00
Andrea Boriero
cdeb95a4d5
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-08-30 14:07:19 +02:00
Sanne Grinovero
9267c5e6a6
HHH-14792 Remove support for bytecode enhancement via Javassist
2021-08-26 15:22:30 +01:00
Andrea Boriero
2622ce70d2
Re-enabled envers tests
2021-08-24 11:43:00 +02:00
Andrea Boriero
397ca4e4a0
Re-enabled envers tests
2021-08-23 19:05:25 +02:00
Andrea Boriero
f507c3a00e
Re-enabled envers tests
2021-08-23 17:40:43 +02:00
Andrea Boriero
83fba3064f
Re-enabled envers tests
2021-08-23 16:23:38 +02:00
Andrea Boriero
8121b5daa3
Re-enabled envers tests
2021-08-23 16:23:38 +02:00
Andrea Boriero
6f052f035e
Re-enabled envers tests
2021-08-23 16:23:38 +02:00
boris-unckel
e1b82b005c
HHH-14762 Testsuite: Assert.notNull must not be used on primitive types
...
Fix https://hibernate.atlassian.net/browse/HHH-14762
2021-08-10 14:08:34 +02:00
Gavin King
526b3659c8
more correct test code
2021-07-28 15:22:41 +02:00
Gavin King
07096e7cc1
introduce JDBCTypeDescriptor.getDefaultSqlTypeCode()
...
and rename sqlType -> jdbcTypeCode in Type hierarchy for consistency
See https://github.com/hibernate/hibernate-orm/discussions/4088
2021-07-28 15:22:41 +02:00
Steve Ebersole
d16073f7ce
remove dependency on hibernate-core tests from hibernate-envers
2021-07-27 19:38:44 -05:00
Andrea Boriero
98e64579fa
Merge branch 'main' into wip/6.0
2021-07-16 11:24:53 +02:00
Andrea Boriero
8b02aaf5a8
HHH-14608 Merge causes StackOverflow when JPA proxy compliance is enabled
2021-07-15 21:01:09 -07:00
Steve Ebersole
b26b00a358
Bump matrix testing plugin to 3.1.0 (prep for Gradle 7)
2021-07-14 11:44:35 -05:00
Christian Beikov
6447ca9b26
HHH-14693, HHH-10668 Move non-supported dialects to the hibernate-community-dialects artifact and add the SQLite dialect originally contributed by Vlad Mihalcea which was adapted for Hibernate 6. Also add HSQLDB, MySQL and Sybase ASE configurations and a CI job config
2021-07-06 10:14:20 +02:00
Andrea Boriero
6ca0be6d99
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-06-22 09:09:30 +02:00
Christian Beikov
107849c3c8
Fix jakarta sources transformation issues
2021-06-16 08:37:14 +02:00
Andrea Boriero
451568f322
Merge remote-tracking branch 'upstream/main' into wip/6.0_merge_7
2021-05-31 14:55:18 +02:00
Yoann Rodière
07eca3883d
HHH-14635 Upgrade to log4j 2
2021-05-26 09:05:56 +02:00
Andrea Boriero
ffae5474a6
Merge remote-tracking branch 'upstream/main' into wip/6.0_merge_6
2021-05-24 20:41:03 +02:00
Steve Ebersole
c7e37dc1d7
HHH-14513 : Move publishing release and snapshot artifacts to Sonatype OSSRH
2021-05-14 15:06:15 -05:00