Commit Graph

385 Commits

Author SHA1 Message Date
Steve Ebersole e04a9bff0d re-enable tests
re-organize some tests
2021-03-23 13:13:12 -05:00
Christian Beikov 5b0b822717 Move tests to orm/test and fix query cache stats, native query variable substitution and named query support as loader 2021-03-18 20:19:03 +01:00
Steve Ebersole 0a1527186b Removed `@ExtendWith( DialectFilterExtension.class )` from `@SessionFactory` 2021-03-18 08:58:20 -05:00
Steve Ebersole 31b1627baa HHH-14506 - IdentifierGenerator changes
- HHH-14491 - Apply default allocation/increment size for @GeneratedValue(AUTO)
- HHH-14492 - Prefer sequence-per-entity (hierarchy) by default
- HHH-14497 - Drop `hibernate.id.new_generator_mappings` & `hibernate.model.generator_name_as_sequence_name`
- enabled existing tests and convert to JUnit5
2021-03-17 18:00:22 -05:00
Jan Schatteman 7695f03bf9 HHH-14503 - Migration of tests from jpa/test to orm/test/jpa
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-03-16 17:58:45 +01:00
Steve Ebersole 69564cd7c8 HHH-14478 : Allow DialectResolvers to be discovered by ServiceLoader 2021-03-08 08:14:05 -06:00
Christian Beikov ee52989647 Don't build session factory and entity manager eagerly and stop enforcing id class implements Serializable 2021-03-08 11:43:39 +01:00
Steve Ebersole 21cca2bbc2 hibernate-testing cleanup 2021-03-05 14:12:25 -06:00
Steve Ebersole 2ee5ed0e52 hibernate-testing cleanup 2021-03-05 07:28:41 -06:00
Steve Ebersole ddf434df7e HHH-14469 - Support schema-tooling on sub-sets of the relational model known to Hibernate
- @BootstrapServiceRegistry
- Support for filtering at schema-tooling level
2021-03-04 09:42:45 -06:00
Andrea Boriero 005c4cea63 Merge remote-tracking branch 'upstream/master' into wip/6.0 2021-02-24 15:02:45 +01:00
Jan Schatteman c44570757d Migrated more tests from jpa/tests to orm/test/jpa
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-02-22 21:45:38 +01:00
Steve Ebersole db54fe44db HHH-13658 : Make LazyToOne optional
HHH-13134 : JOIN FETCH does not work properly with enhanced entities
2021-02-22 12:50:44 -06:00
Jan Schatteman 406974089b Spelling correction in @Jpa
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-02-16 18:05:57 +01:00
Jan Schatteman b15e7506cc Enable adding non-String setting values to the @Jpa integrationSettings
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-02-12 21:43:21 +01:00
Christian Beikov 35643c468a Merge remote-tracking branch 'upstream/master' into wip/6.0 2021-02-12 15:49:53 +01:00
Karel Maesen 6cead49fec HHH-14446 Add PostgresqlDatabaseCleaner checks
Since the PostgreSQL JDBC driver is also used for CockroachDB, we need to test explicitly if the database is indeed PostgreSQL.
2021-02-12 15:39:19 +01:00
Karel Maesen 6d97df6707 HHH-14446 Add spatial integration test profiles for DB2 and HANA 2021-02-12 15:39:19 +01:00
Karel Maesen a467641584 HHH-14446 Fix PostgreSQL create extension syntax 2021-02-12 15:39:19 +01:00
Christian Beikov 9f096e89ec Repurpose DefaultSizeStrategy to SizeStrategy for resolving final size. Fix boolean encoding/decoding issues. Remove duplicate order bys. Fix set operation nesting. Fix lots of tests for SQLServer, MariaDB, Derby and Oracle 2021-02-12 13:43:42 +01:00
Christian Beikov 4931c7e69f Merge remote-tracking branch 'upstream/master' into wip/6.0 2021-02-10 12:00:37 +01:00
Christian Beikov 3eee006002 Merge remote-tracking branch 'upstream/wip/6.0' into wip/6.0 2021-02-10 11:38:39 +01:00
Christian Beikov de1524df68 Merge remote-tracking branch 'upstream/master' into wip/6.0 2021-02-10 11:28:58 +01:00
Christian Beikov 15caff9cbc Fix PostgreSQL cleanup wrt extensions, fix Oracle cleanup wrt sys objects, always drop id tables in tests, fix global temp table tests, add on commit delete rows for hana dialects 2021-02-10 09:30:48 +01:00
Andrea Boriero b1951f5c26 Migrate tests from org.hibernate.jpa.test to org.hibernate.orm.test.jpa (#5) 2021-02-05 01:17:29 +01:00
Christian Beikov 1983123d72 Use a shared connection provider for most tests to reduce test time significantly 2021-02-03 17:03:47 +01:00
Christian Beikov 62d727d44e Fix connection leak in connection provider used for JTA tests 2021-02-03 17:03:47 +01:00
Christian Beikov 08d9fe1a3b Add cleaners for clearing a schema the first time before running a test 2021-02-03 17:03:47 +01:00
Christian Beikov d767d46d05 Fix most tests to work on all DBs and fix a bunch of connection leaks 2021-02-03 17:03:47 +01:00
Steve Ebersole 9849ea5a1f - HHH-14409 : Internal format of natural-id values
- org.hibernate.loader.access
- `ModelPart.breakDownJdbcValues`
- build/keep natural-id loaders per entity (inheritance)
- changes to NotImplementedYetExtension
- tests
2021-01-27 10:38:20 -06:00
Andrea Boriero 24b79133f2 Created a ClassLoadingIsolaterExtension to remove the need of @Rule in tests using ClassLoadingIsolater 2021-01-25 22:38:53 +01:00
Andrea Boriero e0e44433a9 Fix some issues with tests migration 2021-01-25 18:40:59 +01:00
Andrea Boriero 491cbabc6c Added Junit5 extention to use LoggerInspection without @Rule annotation 2021-01-25 18:40:59 +01:00
Andrea Boriero ac18db61b7 Fix checkstyle error 2021-01-25 18:40:59 +01:00
Andrea Boriero a5d60b3b7e Add @BaseUnitTest annotation and minor changes 2021-01-25 16:20:45 +01:00
Andrea Boriero b761cfddd3 Merge remote-tracking branch 'upstream/master' into wip/6.0 2021-01-20 17:48:43 +01:00
Yoann Rodière d726dcb394 HHH-14326 Test JDBC resources are released before closing the connection
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
2021-01-20 09:26:51 +00:00
Christian Beikov 4efffca23b Add support for FETCH clause, CTEs and set operations 2021-01-13 17:24:45 +01:00
Jan Schatteman 2e835c47cd New Test annotation @NotImplementedYet
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2020-12-21 19:45:20 +01:00
Steve Ebersole 33358df72b New testing `@Jpa` annotation 2020-12-11 10:24:29 +01:00
Andrea Boriero 7d74f1c727 Fix issue with emneddable id initialization 2020-12-10 17:02:49 +01:00
Andrea Boriero 9a6465a72f Check if auto flush is required for hql queries 2020-12-08 17:01:27 +01:00
Christian Beikov c4673e5a5c Fix a few more test issues and handle group by summarization rendering strategies as well as group by literal rendering strategies 2020-12-08 11:27:27 +01:00
Christian Beikov a57f93b14a Use processing stack during parsing to access query spec, fix lots of db2 issues 2020-12-08 11:27:27 +01:00
Christian Beikov d9446e7c77 Fix a few test issues, implement tuple emulation, group by support and support configuring criteria value handling mode 2020-12-08 11:27:27 +01:00
Andrea Boriero e3947b3b1c Re-enabled additional tests and fix issues with IdClass 2020-11-25 15:15:34 +01:00
Steve Ebersole be654c37b5 HHH-14313 - NaturalId support 2020-11-11 08:27:20 -06:00
Steve Ebersole 4402843d1c Various fixes from Search integration testing
- do not cache Criteria query plans (added Trello card to revisit)
  - support for StatelessSession in JUnit 5 extensions (SessionFactoryScope)
2020-10-30 12:04:52 -05:00
Steve Ebersole 23f64fc675 Various fixes from Search integration testing
- support for mutable converted (AttributeConverter) values
  - bug in EntityType#toLoggableString
2020-10-30 08:32:39 -05:00
Andrea Boriero 9cf4edfbee Merge remote-tracking branch 'upstream/master' into wip/6.0 2020-10-26 08:14:01 +00:00