Commit Graph

7117 Commits

Author SHA1 Message Date
Andrea Boriero bf79ff6cfd Fix Sybase failure 2021-08-31 09:17:15 +02:00
Andrea Boriero bb7b524e40 Re-enabled additional tests 2021-08-31 09:17:15 +02:00
Steve Ebersole 6f60cd8918 improve discriminator handling
- use fetch/result as the distinction for whether to select Class / entity-name or the "underlying type" value for discriminator.  The only time we'd have a DomainResult for the discriminator is for Query where the type is selected; all other times want the underlying type
2021-08-30 13:32:52 -05:00
Andrea Boriero aaba4767fe Fix Sybase Connection#getSchema() throws an exception 2021-08-30 18:34:42 +02:00
Christian Beikov c01734adca Rely on fetch of version attribute mapping instead of creating domain result for version mapping for entity initializers to allow overriding the selection expression 2021-08-30 17:18:02 +02:00
Christian Beikov 75d2ada4d8 Fix component and foreign- as well as primary-key properties/columns ordering 2021-08-30 17:18:02 +02:00
Andrea Boriero cdeb95a4d5 Merge remote-tracking branch 'upstream/main' into wip/6.0 2021-08-30 14:07:19 +02:00
Sanne Grinovero 9267c5e6a6 HHH-14792 Remove support for bytecode enhancement via Javassist 2021-08-26 15:22:30 +01:00
Gail Badner a70b994526 HHH-14744 : Refactor contextual information for SchemaManagementTool to be more easily extended by Hibernate Reactive
1. Add CockroachDB192Dialect#getNameQualifierSupport and #buildIdentifierHelper.
2. Change semantics for AbstractInformationExtractorImpl#processIndexInfoResultSet
   to be more friendly to subclasses.
2021-08-25 15:31:45 +01:00
Gail Badner f4f4d49da0 HHH-14744 : Refactor contextual information for SchemaManagementTool to be more easily extended by Hibernate Reactive
Add MySQLDialect#getNameQualifierSupport
2021-08-25 15:31:45 +01:00
Gail Badner b17a46cbd5 HHH-14744 : Refactor contextual information for SchemaManagementTool to be more easily extended by Hibernate Reactive
Remove SequenceInformationExtractorPostgresSQLDatabaseImpl and PostgreSQL10Dialect#getSequenceInformationExtractor
2021-08-25 15:31:45 +01:00
Gail Badner 352eb2fae1 HHH-14744 : HHH-14744 : Refactor contextual information for SchemaManagementTool to be more easily extended by Hibernate Reactive
Move methods from PostgreSQL10Dialect into PostgreSQL81Dialect; remove @GeneratedValue from SchemaUpdateTest
2021-08-25 15:31:45 +01:00
Gail Badner 3720e5fac4 HHH-14744 : HHH-14744 : Refactor contextual information for SchemaManagementTool to be more easily extended by Hibernate Reactive
Remove PostgreSQL10Dialect#buildIdentifierHelper since it is no longer needed.
2021-08-25 15:31:45 +01:00
Gail Badner 42b8be7852 HHH-14744 : Refactor contextual information for SchemaManagementTool to be more easily extended by Hibernate Reactive
Correct specifications for row order of some ResultSets.
2021-08-25 15:31:45 +01:00
Gail Badner 95ef2ae41d HHH-14744 : Refactor contextual information for SchemaManagementTool to be more easily extended by Hibernate Reactive
Add Javadoc and other minor changes to make it easier to review
2021-08-25 15:31:45 +01:00
Gail Badner 8aae155c50 HHH-14744 : Refactor contextual information for SchemaManagementTool to be more easily extended by Hibernate Reactive
Move new methods out of SchemaManagementTool and into ExtractionTool
2021-08-25 15:31:45 +01:00
Gail Badner 800436ee88 HHH-14744 : Checkstyle fixes 2021-08-25 15:31:45 +01:00
Gail Badner 4bb3de09a1 HHH-14744 : Refactor contextual information for SchemaManagementTool to be more easily extended by Hibernate Reactive
HHH-14744 : Restore databases/pgsql/resources/hibernate.properties and gradle/databases.gradle
2021-08-25 15:31:45 +01:00
Andrea Boriero 39ee0236be Fix problem with DB2, PostgerSQL with CTE table names for quoted tables 2021-08-24 16:16:25 +02:00
Andrea Boriero 3f87ed17ee Re-enabled additional tests 2021-08-24 16:16:25 +02:00
Andrea Boriero a8201bacdb Fix Sybase failing test 2021-08-24 10:18:01 +02:00
Andrea Boriero 718d1e4380 Fix compilation errors 2021-08-24 10:18:01 +02:00
Steve Ebersole dbed6112c8 test enablement - org.hibernate.query package 2021-08-23 19:22:14 -05:00
Steve Ebersole b7bbbcc19c Query hints - native query synchronized spaces
+ cleaned up unused contracts in `org.hibernate.query.sql`
2021-08-23 17:51:32 -05:00
Steve Ebersole bc4b0c9d08 Query hints - native query synchronized spaces
+ cleaned up unused contracts in `org.hibernate.query.sql`
2021-08-23 17:42:27 -05:00
Steve Ebersole 0c674deda5 Query hints
+ dropped `AbstractProducedQuery` (no subclasses)
2021-08-23 13:41:41 -05:00
Andrea Boriero 6011421fb7 Merge remote-tracking branch 'upstream/main' into wip/6.0 2021-08-23 15:05:28 +02:00
boris-unckel db3346962a HHH-14764 Testsuite: AssertionErrors must not be caught
Fixes https://hibernate.atlassian.net/browse/HHH-14764
2021-08-23 12:06:59 +02:00
Steve Ebersole 82856070ec discriminator work
- Handle discriminator as Fetch for entity ResultGraphNodes.  This allows us to make the distinction about whether to handle the discriminator as `Class` or as its "underlying" type when selecting it.  Fetches return the underlying type.  DomainResults return `Class`, or String for entity-named entity mappings
2021-08-20 18:48:14 -05:00
Steve Ebersole 6803c09645 fixes for Antlr tasks 2021-08-20 18:27:46 -05:00
Steve Ebersole 524b2982cf discriminator work
- Handle discriminator as Fetch for entity ResultGraphNodes.  This allows us to make the distinction about whether to handle the discriminator as `Class` or as its "underlying" type when selecting it.  Fetches return the underlying type.  DomainResults return `Class`, or String for entity-named entity mappings
2021-08-20 14:26:40 -05:00
Steve Ebersole fb651ef07d discriminator work
- Handle discriminator as Fetch for entity ResultGraphNodes.  This allows us to make the distinction about whether to handle the discriminator as `Class` or as its "underlying" type when selecting it.  Fetches return the underlying type.  DomainResults return `Class`, or String for entity-named entity mappings
2021-08-20 14:02:26 -05:00
Steve Ebersole 78bd816a85 discriminator work
- Handle discriminator as Fetch for entity ResultGraphNodes.  This allows us to make the distinction about whether to handle the discriminator as `Class` or as its "underlying" type when selecting it.  Fetches return the underlying type.  DomainResults return `Class`, or String for entity-named entity mappings
2021-08-20 13:41:55 -05:00
Steve Ebersole c0de4c7854 discriminator work
- Handle discriminator as Fetch for entity ResultGraphNodes.  This allows us to make the distinction about whether to handle the discriminator as `Class` or as its "underlying" type when selecting it.  Fetches return the underlying type.  DomainResults return `Class`, or String for entity-named entity mappings
2021-08-20 13:41:55 -05:00
Steve Ebersole 83ac9d5d3d xjc task config 2021-08-20 13:41:55 -05:00
Steve Ebersole a532445e35 test migration 2021-08-20 13:41:54 -05:00
Andrea Boriero bbc9e6af20 Re-enabled additional tests 2021-08-18 11:37:49 +02:00
Andrea Boriero 75ff2500c7 Re-enabled additional tests 2021-08-18 11:37:49 +02:00
Andrea Boriero d46db44082 Re-enabled additional tests 2021-08-18 11:37:49 +02:00
Andrea Boriero 746aeb5c95 Re-enabled additional tests 2021-08-18 11:37:49 +02:00
Andrea Boriero 9710bfcf39 Fix load toOne association not referencing a PK with FetchMode.SELECT 2021-08-18 11:37:49 +02:00
Andrea Boriero 5160c8ac6a Fix throw EntityNotFoundException when an association not mapped with @NotFound(IGNORE) is null 2021-08-18 11:37:49 +02:00
Christian Beikov 1ba3595292 HHH-14777 Enabled skip locked rendering for MariaDB 10.6+ 2021-08-17 10:38:27 +02:00
Christian Beikov dffe592cde HHH-14777 Enabled skip locked rendering for MariaDB 10.6+ 2021-08-17 10:38:18 +02:00
The Geeky Asian 971d0f1fc5 HHH-13848 - Fix for potential NullPointerException
The callers of the convert() method in ResourceRegistryStandardImpl expect an exception which is then thrown. This me produce NullPointerException, which has been fixed in this commit.
2021-08-16 22:47:43 +02:00
Christian Beikov e0c77e82ad Properly calculate binary digit numbers for float based on decimal digit numbers 2021-08-16 17:36:50 +02:00
Christian Beikov e415d1bde6 Move annotations.manytoone tests and fix table reference resolving issues 2021-08-16 17:36:50 +02:00
Christian Beikov 76f424fcff Move annotation.manytomany tests and fix filter rendering as well as collection owner initialization and fetching of non-PK to-one attributes 2021-08-16 17:36:50 +02:00
Christian Beikov b326b303d3 Add a millisecond sleep to ensure generated timestamp annotation tests work 2021-08-16 17:36:50 +02:00
Christian Beikov 58078aee66 Move annotations.lob tests 2021-08-16 17:36:50 +02:00