Commit Graph

14580 Commits

Author SHA1 Message Date
Mark Rotteveel c71d1b3bef HHH-15765 Fix build failure by upgrade nu.studer.credentials to 3.0 2022-11-28 08:05:39 +01:00
Gavin 86b28f4c8d expand javadoc for OptimisticLocking 2022-11-27 20:01:33 +01:00
Gavin f2c81b0eaf rename some methods to reduce confusion 2022-11-27 14:16:43 +01:00
Gavin 759b68b022 HHH-15770 let you use @ColumnDefault on associations
this is very useful in combination with @OnDelete(action=SET_NULL)
2022-11-27 14:16:43 +01:00
Gavin 76f92bd901 HHH-15770 add in all the commonly-supported OnDeleteActions 2022-11-27 14:16:43 +01:00
Gavin c9caf292e6 HHH-15770 javadoc and cleanup for @OnDelete, OnDeleteAction 2022-11-27 14:16:43 +01:00
Gavin 12aa8bd431 add some comments for the next poor soul who wrestles with unique constraints 2022-11-27 12:38:45 +01:00
Gavin 5172d8798f HHH-15762 work around weird semantics of null in unique index on DB2/T-SQL 2022-11-27 02:14:38 +01:00
Gavin 0253e1fe7a HHH-15767 put unique constraints where they belong on optional @OneToOne associations
this was a bug that allowed people to use @OneToOne as a regular @ManyToOne
and ... people did ... as evidenced by all these bogus tests I just fixed

this is in principle a breaking change because it breaks code that was broken
2022-11-27 02:14:38 +01:00
Christian Beikov 82e42ef946 Fix OrderSequenceGenerationTest 2022-11-26 13:44:29 +01:00
Gavin dd50e1e28e add message/@deprecated a member that Hibernate ignores 2022-11-26 13:40:40 +01:00
Gavin 13f4c8c285 light refactoring 2022-11-26 13:40:40 +01:00
Gavin 3ba90c004c HHH-15762 nicer DDL for unique constraints
- prefer 'unique' in 'create table' except in migrations
- also ignore unique=true for PK column
- introduce AlterTableUniqueDelegate and CreateTableUniqueDelegate
- fix the tests / delete test that makes no sense now
- improve javadoc of UniqueDelegate
2022-11-26 13:40:40 +01:00
Gavin 41fb50f18e and add/improve some Javadoc in AvailableSettings 2022-11-26 12:21:50 +01:00
Marco Belladelli 9c0b30f99d HHH-15760 various small html fixes javadoc 2022-11-26 09:49:56 +01:00
Marco Belladelli f38dd28043 HHH-15760 mass replace self-closing tags in javadoc 2022-11-26 09:49:56 +01:00
Christian Beikov f4b1e00ddf Use NOCACHE for all envers tests since they can't cope with values to be skipped 2022-11-26 09:41:54 +01:00
Steve Ebersole cff02f6726 HHH-15763 - Allow Dialect to specify fallback SchemaManagementTool 2022-11-25 23:37:53 -06:00
Gavin 07de23d283 add javadoc about hibernate.dialect 2022-11-26 00:08:16 +01:00
Gavin 27d4a55e75 javadoc for @NaturalId, @NaturalIdCache, @ListIndexBase 2022-11-25 23:11:08 +01:00
Gavin d68eb4b7eb add @deprecated explanations 2022-11-25 22:08:45 +01:00
Jan Schatteman 70873f5d2f HHH-15686 - test and fix for issue 'Envers incorrect key parameter order in insert statement when InheritanceType.JOINED and @Embeddable ID'
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-11-25 19:49:15 +01:00
Davide D'Alto 739cb653e5 HHH-15747 Add SqmSelectionQueryImpl#getTupleMetadata
For Hibernate Reactive
2022-11-25 13:23:27 +01:00
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