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
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