14557 Commits

Author SHA1 Message Date
Davide D'Alto
6f78c26390 HHH-15747 Add QuerySqmImpl#getTupleMetadata()
For Hibernate Reactive
2022-11-25 13:23:27 +01:00
Christian Beikov
276b7a6f95 HHH-15748 Use JSON DDL type on Oracle 21+ and BLOB on 12+ 2022-11-25 10:11:12 +01:00
Gavin
5b5721f64b HHH-15739 deprecate @LazyToOne and @LazyCollection
and add some docs and cleanups
2022-11-25 02:42:58 +01:00
Gavin
c8ffee43ef HHH-15750 fix bug in Hibernate.isInitialized()
it didn't work for EnhancementAsProxyLazinessInterceptor
2022-11-25 02:42:58 +01:00
Karel Maesen
be406f2732 HHH-15668 Apply recommended settings for CockroachDB
The recommended CockroachDB v22.1 settings for local testing have changed. The recommended
settings are now applied.

The setting `schemachanger.backfiller.buffer_increment` seems to have been removed
(despite still being mentioned in the documentation). We remove it
because it throws an error and this may leave the Cockroach cluster
with some of the recommended settings not applied.
2022-11-24 08:45:56 +01:00
Karel Maesen
160f86a2f6 HHH-15668 Fix assertion in BatchOptimisticLockingTest
Recent CockroachDB versions return a more detailed message. We now
test only the first part of the error message.
2022-11-24 08:45:56 +01:00
Christian Beikov
67d751d81d Cleanup embeddable expression handling and resolving of column references 2022-11-23 20:44:33 +01:00
Christian Beikov
c6fa10de6e Fix file descriptor leak 2022-11-23 20:44:33 +01:00
Christian Beikov
818bb41091 Teach CustomRunner to read orm.junit annotations 2022-11-23 20:44:33 +01:00
Karel Maesen
43f9cd6694 HHH-15669 Remove @SkipForDialect Oracle 21 2022-11-22 21:51:22 +01:00
Karel Maesen
6658c6235f HHH-15669 Fix test failures when using Oracle 21
Rings in Oracle polygons may be shifted depending on how it
is processed. The equality test now takes this into account.

Add test to investigate st_within test failure.
2022-11-22 21:51:22 +01:00
Andrea Boriero
bf128ddbfa HHH-15711 Fix test failure with Oracle 2022-11-22 17:55:17 +01:00
Andrea Boriero
6f0a631917 HHH-15718 Polymorphic queries with condition do not work 2022-11-22 15:45:54 +01:00
Andrea Boriero
a65579e268 HHH-15718 Add test for issue 2022-11-22 15:45:54 +01:00
Andrea Boriero
98458b31f7 HHH-15711 ArgumentTypesValidator doesn't support enums in string functions 2022-11-22 15:34:31 +01:00
Andrea Boriero
8ef73781ba HHH-15711 Add test for issue 2022-11-22 15:34:31 +01:00
Andrea Boriero
2171d3b24a HHH-15606 @OneToOne(mappedBy = ..., fetch = LAZY) in embedded leads to IllegalArgumentException: Can not set [...] to LazyPropertyInitializer 2022-11-22 15:27:04 +01:00
Yoann Rodière
a2a2a83684 HHH-15606 Test @OneToOne(mappedBy = ..., fetch = LAZY) in embedded 2022-11-22 15:27:04 +01:00
Andrea Boriero
ff973d4580 HHH-15699 HibernateException: Found shared references to a collection when ShareCacheMode.All or ShareCacheMode.DISABLE_SELECTIVE 2022-11-22 15:06:45 +01:00
Andrea Boriero
d9c790cae1 HHH-15699 Add test for issue 2022-11-22 15:06:45 +01:00
Andrea Boriero
838cbb81ca HHH-15658 Embeddable with more fields than the parent fails with Index out of Bounds 2022-11-22 14:55:09 +01:00
Andrea Boriero
255cf3e301 HHH-15658 Add test for issue 2022-11-22 14:55:09 +01:00
Gavin
fae1ec40fd add Hibernate.isInstance() convenience method 2022-11-22 12:49:35 +01:00
Gavin
5160ac3192 completey rewrite the javadoc I just wrote and pushed
ooops, I suck :-(
2022-11-21 20:26:58 +01:00
Gavin
a72c8744a8 document limitation of LazyToOne(NO_PROXY) to non-polymorphic associations
we can roll back this commit if/when we fix the limitation, as proposed:

    https://github.com/hibernate/hibernate-orm/discussions/5591
2022-11-21 18:01:00 +01:00
Gavin
2e02b9a74f throw exception for contradictory annotations 2022-11-21 18:01:00 +01:00
Gavin
2e99811dd4 javadoc for @LazyToOne 2022-11-21 18:01:00 +01:00
Andrea Boriero
c1070b8171 HHH-15687 Add test for issue 2022-11-21 13:31:35 +01:00
Christian Beikov
6aedc5499d HHH-15730 Fix NPE in EnhancedSetterImpl 2022-11-18 14:40:18 +01:00
Gavin
c51604c6b7 improve javadoc for annotations related to filters + discriminators
Also:

- deprecate a layer-breaking method of org.hibernate.Filter
  (consistent with what we already did on SessionFactory)
- fix the incorrect @Target of @SqlFragmentAlias
- add some missing @since annotations
- add cross-links to DialectOverride
2022-11-18 14:12:22 +01:00
Andrea Boriero
d25c1a44f0 HHH-15694 HibernateException: Unable to resolve property xyz on ManyToOne with BatchSize 2022-11-18 12:26:20 +01:00
Andrea Boriero
47933b36bd HHH-15694 Add test for issue 2022-11-18 12:26:20 +01:00
Andrea Boriero
4688cccdbc HHH-15695 Batch loading, Embeddable with an Association is considered null when all the other Embeddable attributes are null 2022-11-18 12:26:20 +01:00
Andrea Boriero
7f7e54c42d HHH-15695 Add test for issue 2022-11-18 12:26:20 +01:00
Andrea Boriero
29cfc5a7e0 HHH-15644 ClassCastException when batch-fetching association in embeddable 2022-11-18 12:26:20 +01:00
Andrea Boriero
00717c6911 HHH-15644 Add test for issue 2022-11-18 12:26:20 +01:00
Thomas Heigl
7c72115bcf HHH-15644 Add reproducer test 2022-11-18 12:26:20 +01:00
Andrea Boriero
3a0b5feda0 HHH-15640 ElementCollection with SubSelect FetchMode throws NPE, ownerEntry is null 2022-11-18 11:12:16 +01:00
Andrea Boriero
7337e0be2e HHH-15640 Add test for issue 2022-11-18 11:12:16 +01:00
Christian Beikov
7aa9b1bbd8 HHH-15626 Move old databases to nightly pipeline and add some SQL Server 2022 features 2022-11-18 11:09:14 +01:00
Christian Beikov
d6bfe1cacf HHH-15700 Allow specifying NOCACHE for Envers revision info sequence 2022-11-18 11:06:39 +01:00
Christian Beikov
4914d14a43 HHH-15626 Move old databases to nightly pipeline and add some SQL Server 2022 features 2022-11-18 11:06:39 +01:00
Andrea Boriero
dd5c455d88 HHH-15646 Using a generic DTO i get a ClassCastException: class sun.reflect.generics.reflectiveObjects.TypeVariableImpl cannot be cast to class java.lang.reflect.ParameterizedType 2022-11-18 11:04:28 +01:00
Andrea Boriero
ccf24ac355 HHH-15646 Add test for issue 2022-11-18 11:04:28 +01:00
Andrea Boriero
385926e61b HHH-15624 java.lang.ClassCastException: class sun.reflect.generics.reflectiveObjects.WildcardTypeImpl cannot be cast to class java.lang.reflect.ParameterizedType when using generics and Wildcard 2022-11-18 11:04:28 +01:00
Andrea Boriero
8f2c3cc615 HHH-15624 Add test for issue 2022-11-18 11:04:28 +01:00
Andrea Boriero
4ca9c2bb3b HHH-15716 ClassCastException in QueryParameterBindingsImpl.generateQueryKeyMemento 2022-11-18 10:51:29 +01:00
Andrea Boriero
03f1ce9c49 HHH-15716 Add test for issue 2022-11-18 10:51:29 +01:00
Sanne Grinovero
44aa5288c7 HHH-15693 An additional minor polish to the previously applied optimisation 2022-11-17 17:48:03 +00:00
Sanne Grinovero
e89063ae91 HHH-15732 Upgrade to Hibernate Commons Annotations 6.0.5.Final 2022-11-17 17:44:52 +00:00