Commit Graph

15053 Commits

Author SHA1 Message Date
Gavin b704e3154e put stub PostgreSQL10Dialect back where it belongs 2022-12-21 02:26:05 +01:00
Gavin 64d0cf804a rename Generator subtypes to BeforeExecuteGenerator and OnExecuteGenerator
- and update javadocs
- add/improve doc of new Dialect methods
- add some missing @Override annotations
2022-12-21 00:15:25 +01:00
Gavin f3e31fe427 remove ancient limitation that allowed only one property as UK for 'select' id generator 2022-12-21 00:15:25 +01:00
Gavin King d30bf092aa Apply suggestions from code review
Co-authored-by: Steve Ebersole <steve@hibernate.org>
2022-12-20 22:36:33 +01:00
Gavin 72c2559d39 clean up obsolete imports and warning suppressions 2022-12-20 22:36:33 +01:00
Gavin 5089df2036 HHH-15912 adaptively choose the DDL type for ORDINAL enums based on the number of members
this amounts to a reversion of HHH-15288 for 99.99% of enums
2022-12-20 22:36:33 +01:00
Christian Beikov 7007bafe55 HHH-15872 Add ColumnOrderingStrategy SPI and handle record structs specially 2022-12-20 20:17:23 +01:00
Andrea Boriero 1f630e4a5d HHH-15805 Subquery with where condition on a column with columnDefinition results in wrong SQL grammer 2022-12-20 18:55:17 +01:00
Andrea Boriero 62b218d411 HHH-15805 Add test for issue 2022-12-20 18:55:17 +01:00
Georg Echterling 81d9707f61 HHH-15784 Fix primitive array as NaturalId. 2022-12-20 16:35:35 +01:00
Georg Echterling f13c69fb63 HHH-15784 Add test for primitive array as NaturalId. 2022-12-20 16:35:35 +01:00
Georg Echterling 5d93213ea3 HHH-15778 Fix Embeddable with FetchTiming.DELAYED 2022-12-20 13:53:46 +01:00
Georg Echterling 70638f9e60 HHH-15778 Add test for Embeddable with FetchTiming.DELAYED 2022-12-20 13:53:46 +01:00
Marco Belladelli b68eacbb90 HHH-15900 Fix failing tests on TiDB due to missing trigger support 2022-12-20 10:24:54 +01:00
Marco Belladelli 04b77066df HHH-15654 Fix failing window function tests on DB2 10.5 2022-12-20 10:12:13 +01:00
Gavin 3ad3c5a509 change default event timing for @Generated to event = INSERT
- this makes sense if @Generated con now be used on @Id properties
- but it's also convenient with @ColumnDefault
2022-12-20 01:38:55 +01:00
Gavin be3621d8f8 hand over responsibilities of SelectGenerator to @Generated
at the end of all this work on SelectGenerator, a cruel twist of fate!
2022-12-20 01:38:55 +01:00
Gavin 250995336b note down an important TODO for later 2022-12-20 01:38:55 +01:00
Gavin 0f4cdc3bdb use getGeneratedKeys() in SelectGenerator on Oracle 2022-12-20 01:38:55 +01:00
Gavin ad2d4604fb document supported database versions in Dialects
there was incorrect information here for a couple of them
2022-12-20 01:38:55 +01:00
Gavin 00edf48483 fix version # of support for 'insert returning' on Maria 2022-12-20 01:38:55 +01:00
Gavin 7b387f3ecf correctly handle 'returning' clause in DML formatter 2022-12-20 01:38:55 +01:00
Gavin 01fa0c0fe9 suppport 'from new table' on DB2 for retrieving generated primary keys 2022-12-20 01:38:55 +01:00
Gavin c4e27c0a2e make select generator tests run on SQL Server 2022-12-20 01:38:55 +01:00
Gavin 587857e6bf run SelectGeneratorTest on Db2 2022-12-20 01:38:55 +01:00
Gavin ed0f93ecdd use 'from final table' in SelectGenerator on h2 2022-12-20 01:38:55 +01:00
Gavin d93e72dc7e some misc minor cleanups 2022-12-20 01:38:55 +01:00
Gavin 782d2c9707 refactor SchemaCreatorImpl, SchemaDropperImpl into bite-sized methods 2022-12-20 01:38:55 +01:00
Gavin 32790456b7 test select generator on h2 2022-12-20 01:38:55 +01:00
Gavin 493818141e fix logging of DDL
the DDL formatter was being applied twice
2022-12-20 01:38:55 +01:00
Gavin ff9a60601c improve error reporting for DDL execution 2022-12-20 01:38:55 +01:00
Gavin d49b568d7b make SelectGenerator capable of using 'insert ... returning ...' 2022-12-20 01:38:55 +01:00
Gavin 679ed3bbee add select generator test for Postgres, MySQL, EDB 2022-12-20 01:38:55 +01:00
Jan Schatteman d8bf649998 HHH-15910 Add static remove methods to Hibernate.class
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-12-19 22:48:39 +01:00
Steve Ebersole e0f55e5d53 HHH-15894 - Clean-up EntityMappingType for API 2022-12-19 11:46:51 -06:00
Steve Ebersole 1715f09a89 HHH-15893 - Clean-up NaturalIdMapping for API
HHH-15894 - Clean-up EntityMappingType for API
2022-12-19 10:36:53 -06:00
Sanne Grinovero c21fef3a66 HHH-15887 Avoid megamorphic calls on JdbcValuesSourceProcessingState#getSession 2022-12-19 08:38:53 +00:00
Sanne Grinovero 7c068e5be4 HHH-15886 Micro optimisations in NavigableRole equals and hashcode 2022-12-19 08:38:53 +00:00
Davide D'Alto 2933a759fa HHH-15904 Change scope of BasicCollectionPersister#buildRowMutationOperations 2022-12-19 07:36:01 +00:00
Gavin e8c2824976 allow use of SelectGenerator from annotations
- generalize @GenericGenerator to any Generator
- add tests for @GenericGenerator(type=SelectGenerator)
- move some logic for choosing the right InsertGeneratedIdentifierDelegate
  to the generators themselves
2022-12-17 19:02:20 +01:00
Gavin 6536fe0d72 very minor code changes 2022-12-17 19:02:20 +01:00
Marco Belladelli 8285eba3ac HHH-15900 Make SelectGenerator not extend IdentityGenerator 2022-12-17 11:56:38 +01:00
Marco Belladelli 86ba5144f6 HHH-15900 Add test for issue 2022-12-17 11:56:38 +01:00
Marco Belladelli 8bbb1edb30 Fix some failing tests 2022-12-16 16:18:08 +01:00
Marco Belladelli 1ce4135145 HHH-15654 Fix failing criteria set-ordered tests for some dbs 2022-12-16 16:18:08 +01:00
Christian Beikov 1ee34ac0a1 Switch from LGTM to CodeQL 2022-12-16 12:52:58 +01:00
Marco Belladelli aadd0d7179 HHH-15398 Bump baseline Jakarta Persistence version to 3.1 2022-12-16 11:49:02 +01:00
Christian Beikov eccc1a89c5 Ensure TypeContributor registered JdbcType has precedence over fallback and preferred types 2022-12-16 11:47:38 +01:00
marco fe5fa5dce4 HHH-15550 New global and persistent temporary `create_tables` params 2022-12-16 08:25:41 +01:00
Marco Belladelli caaaa71ffd HHH-15550 New global and persistent temporary `create_tables` params 2022-12-16 08:25:41 +01:00