Commit Graph

14939 Commits

Author SHA1 Message Date
Gavin 01d608ca84 HHH-14526 validate table repetition in JOINED hierarchies
and automatically force the discriminator when necessary
2022-12-26 18:22:06 +01:00
Gavin 0f29c15461 HHH-9646 add a test showing the issue is resolved 2022-12-26 18:22:06 +01:00
Gavin 169b9a849c drop arbitrary restrictions on what annotations can go where
also add an error for competing @FilterDefs
2022-12-26 18:22:06 +01:00
Gavin 491b1bc06f HHH-15935 add discriminatorType to @DiscriminatorFormula 2022-12-26 18:22:06 +01:00
Gavin a4191c9e11 test for JPA-46 with a twist
I use a @DiscriminatorFormula and @Basic(optional=false) to do it in a nice way
2022-12-26 18:22:06 +01:00
Gavin a8620b62bb squash a handled NPE and fix some warnings 2022-12-26 18:22:06 +01:00
Gavin 218ace291f HHH-15934 correctly handle @Basic(optional=false)
previously it had no effect
2022-12-26 18:22:06 +01:00
Gavin 9e9a363154 HHH-15933 fix FK generated for ref to secondary table 2022-12-26 18:22:06 +01:00
Gavin 1e57f88674 add failing test for @ManyToOne referencing secondary table 2022-12-26 18:22:06 +01:00
Gavin bedcc0386a add a second test for repeated table names in JOINED with discriminator inheritance 2022-12-26 18:22:06 +01:00
Gavin 8162bd5152 lots more cleanups to persisters 2022-12-26 18:22:06 +01:00
Gavin 5f0b27fb6a detect use of @DiscriminatorOptions(force=true) on JOINED with no @DiscriminatorColumn 2022-12-26 18:22:06 +01:00
Gavin 014847f41b HHH-15932 allow @XxxxToOne associations to target a secondary table 2022-12-26 18:22:06 +01:00
Gavin c7bad70073 fix exceptions for a certain kind of wrong join column mapping 2022-12-26 18:22:06 +01:00
Gavin 408e0ec436 extract a method 2022-12-26 18:22:06 +01:00
Gavin e918f92f48 improvements to how discriminators are handled by AbstractEntityPersister 2022-12-26 18:22:06 +01:00
Gavin b1e2eca53e some cleanups to AbstractEntityInitializer
it had some really long methods
2022-12-26 18:22:06 +01:00
Gavin 608e4ef6d6 fix error messages in InstantiationExceptions 2022-12-26 18:22:06 +01:00
Gavin 2355f98586 HHH-14526 tolerate dupe tables in JOINED inheritance with discriminator
and also support @DiscriminatorOptions for JOINED inheritance
2022-12-26 18:22:06 +01:00
Gavin 4946e8ca45 HHH-14338 use SESSION prefix instead of MODULE for temp tables on HSQLDB
+ more cleanups of HSQLDialect
2022-12-23 23:09:59 +01:00
Gavin 9dbfc29749 introduce SharedSessionDelegatorBaseImpl 2022-12-23 21:39:54 +01:00
Gavin fc62f33a55 many misc cleanups and doc for the Session hierarchy 2022-12-23 21:39:54 +01:00
Jan Schatteman 974fe9e22d HHH-15914 - Add jira tag to some tests
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-12-23 17:40:38 +01:00
Jan Schatteman c45330023f HHH-15914 - remove deprecated method calls and provide an example of Tuple.class usage
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-12-23 16:05:18 +01:00
Gavin a666f98357 minor fixes to javadoc 2022-12-23 13:53:02 +01:00
Marco Belladelli 724ae7986d HHH-15864 Fix collection's owner referring to Embeddable class 2022-12-23 13:23:03 +01:00
Marco Belladelli 84b0da4970 HHH-15864 Add test for issue 2022-12-23 13:23:03 +01:00
Gavin 7c53a2591a add some more tests for cast() function + allow casting to Short 2022-12-23 13:19:33 +01:00
Steve Ebersole cba4325bb0 small post 6.2 cr1 tasks 2022-12-22 18:47:12 -06:00
Hibernate-CI 723227a3c6 Post-steps for release : `6.2.0.CR1` 2022-12-22 23:40:07 +00:00
Hibernate-CI 14e8c25ad9 Pre-steps for release : `6.2.0.CR1` 2022-12-22 23:35:20 +00:00
Steve Ebersole 51a50bed43 Add a deprecated.txt report to published docs collecting union of `@Deprecated` and `@Remove` 2022-12-22 16:55:02 -06:00
Steve Ebersole 163d5002f4 migration-guide for 6.2 release 2022-12-22 16:26:55 -06:00
Steve Ebersole 263768d5c5 HHH-15930 - Support scalar resultClass in @NamedNativeQuery 2022-12-22 15:48:37 -06:00
Gavin 501d3869d4 refresh javadoc for exception types 2022-12-22 20:49:55 +01:00
Gavin 79b381795f add missing since 2022-12-22 20:20:15 +01:00
Gavin 25c258db1a minor Javadoc fix 2022-12-22 20:18:06 +01:00
Gavin 865a435b3b re-delete NotYetImplementedFor6Exception to fix main 2022-12-22 20:11:43 +01:00
Gavin afcb933d28 very minor changes to javadoc 2022-12-22 20:05:30 +01:00
Gavin bdc172c1df nove NotImplementedYetException to hibernate-testing 2022-12-22 20:05:30 +01:00
Steve Ebersole d49518e5e4 HHH-15798 - Clean up uses of NotYetImplementedFor6Exceptions 2022-12-22 13:03:03 -06:00
Steve Ebersole cc0d6eaca7 HHH-15798 - Remove NotYetImplementedFor6Exceptions and all uses 2022-12-22 12:27:03 -06:00
Gavin 0f8c26c7a1 add missing @since annotations, fix javadoc comment block syntax 2022-12-22 18:59:45 +01:00
Gavin 2d66ce8b2d clean up CacheModeType enum 2022-12-22 18:21:03 +01:00
Gavin 114a82d438 add some missing @since tags 2022-12-22 18:21:02 +01:00
Steve Ebersole b684ace7e6 migration-guide for 6.2 release 2022-12-22 10:30:00 -06:00
Christian Beikov 4901d2bb61 HHH-15464 Allow JdbcType to expose the type code to use for DDL 2022-12-22 17:25:13 +01:00
Christian Beikov a094d4c5d5 HHH-15463 Adjust JdbcType based on DDL capacity for varchar/varbinary like types 2022-12-22 17:25:13 +01:00
Gavin 66b86ad315 fix some whitespace in package-infos 2022-12-22 16:51:15 +01:00
Gavin 1cd183b999 minor javadoc clarifications 2022-12-22 15:45:28 +01:00