612 Commits

Author SHA1 Message Date
Steve Ebersole
089a3f86ae HHH-14837 - Move to Jakarta EE
preliminary transformation;
only `javax.persistence.*` settings supported atm
2021-09-27 08:21:27 -05:00
Andrea Boriero
573d146046 Removed Dialect#areStringComparisonsCaseInsensitive() method 2021-09-25 11:52:03 +02:00
Christian Beikov
905227d2ed Get rid of unnecessary sql tokens for joins and improve join counting for tests 2021-09-23 18:04:02 +02:00
Christian Beikov
0af8755949 Backport of changes from 6314395edf05117f374a8de5e5e506840a337ebb on
wip/6.0 (Fix connection leaks by properly closing service registries)
2021-09-13 17:32:18 +02:00
Christian Beikov
6314395edf Fix connection leaks by properly closing service registries 2021-09-09 16:39:31 +02:00
Christian Beikov
dd6efa509b Introduce internal init_sql config and by default enable ansinull for Sybase ASE 2021-09-02 16:54:46 +02:00
Steve Ebersole
0c674deda5 Query hints
+ dropped `AbstractProducedQuery` (no subclasses)
2021-08-23 13:41:41 -05:00
Christian Beikov
89d16bddc8 Switch to case sensitive collations and fix SQL Server issues 2021-08-05 23:35:17 +02:00
Christian Beikov
1fb839b841 Skip some tests for databases that don't support a current_timestamp function with microsecond precision 2021-08-05 09:50:28 +02:00
Christian Beikov
ca22db14bb Fix some issues with collection-path related HQL functions minindex/maxindex/minelement/maxelement/elements/indices and group by item rendering problems 2021-08-05 09:50:28 +02:00
Christian Beikov
ad49a41cd9 Fix issues with HANA to allow running the testsuite 2021-07-28 16:26:09 +02:00
Steve Ebersole
d16073f7ce remove dependency on hibernate-core tests from hibernate-envers 2021-07-27 19:38:44 -05:00
Andrea Boriero
77d870f08c Re-enabled additional tests 2021-07-26 16:43:26 +02:00
Andrea Boriero
96be013089 Re-enabled additional tests 2021-07-26 16:43:26 +02:00
Andrea Boriero
3f7044eebe Re-enabled additional tests 2021-07-26 16:43:26 +02:00
Andrea Boriero
d6518e0c7a Re-enabled additional tests 2021-07-08 14:09:46 +02:00
Andrea Boriero
09266c7ae1 Fix RIGHT OUTER attribute-joins are not supported 2021-07-08 11:48:53 +02:00
Christian Beikov
6447ca9b26 HHH-14693, HHH-10668 Move non-supported dialects to the hibernate-community-dialects artifact and add the SQLite dialect originally contributed by Vlad Mihalcea which was adapted for Hibernate 6. Also add HSQLDB, MySQL and Sybase ASE configurations and a CI job config 2021-07-06 10:14:20 +02:00
Steve Ebersole
172ddf8700 Improved build configuration to better leverage Gradle up-to-date handling;
Preparation for moving to Gradle 7.0

- Improve Jakarta transformation handling (tests are also actually run now as a bonus);
- Improved CacheableHbmXmlTest to not write "ser" file to `${buildDir}/resources/test`
- Improved DatabaseService(Plugin)
- Update a number of plugins which did not handle up-to-date-ness properly
2021-06-26 08:46:09 -05:00
Steve Ebersole
a6dc84e1fe Work on Instantiator in preparation for composite-user-type work 2021-06-24 10:30:31 -05:00
Andrea Boriero
a8cf8165ae Add version to logic evaluating @SkipForDialect and @RequiresDialect 2021-06-15 18:06:27 +02:00
Andrea Boriero
105f91e910 Merge remote-tracking branch 'upstream/main' into wip/6.0 2021-06-15 11:50:01 +02:00
Steve Ebersole
e4d61a7c62 HHH-14678 - Drop ResultSetWrapper and friends 2021-06-11 12:02:47 -05:00
Sanne Grinovero
5b2289e883 HHH-14667 Avoid triggering the load of sequence metadata when not required
Also introduce SequenceMismatchStrategy#NONE, which allows to fully disable the checks
performed by SequenceMismatchStrategy on initialization; combining these two
changes, users have the option to fully skip loading the details about existing
sequences from the DB.
2021-06-11 11:55:46 +01:00
Christian Beikov
5e0864729b Update H2 to 1.4.200. Replace LockMode in Fetch and DomainResult with the source alias to resolve lock mode during initializer creation. Introduce notion of aggregate function with an optional filter clause. Implement support for rendering locks into SQL. Move locking tests to orm package 2021-06-09 16:41:23 +02:00
Andrea Boriero
451568f322 Merge remote-tracking branch 'upstream/main' into wip/6.0_merge_7 2021-05-31 14:55:18 +02:00
Yoann Rodière
07eca3883d HHH-14635 Upgrade to log4j 2 2021-05-26 09:05:56 +02:00
Andrea Boriero
ffae5474a6 Merge remote-tracking branch 'upstream/main' into wip/6.0_merge_6 2021-05-24 20:41:03 +02:00
Steve Ebersole
c7e37dc1d7 HHH-14513 : Move publishing release and snapshot artifacts to Sonatype OSSRH 2021-05-14 15:06:15 -05:00
Steve Ebersole
c17396521c mariadb nationalization support 2021-05-13 12:43:59 -05:00
Steve Ebersole
71515af5cc HHH-14589 - Make sure documentation examples regarding basic-types work and update the section
- re-enable the basic-type tests in the `documentation` module
- fix basic-type resolution in various cases from tests in both `hibernate-core` and `documentation`
- updated the basic_types.adoc user-guide section + moved much of the "legacy" discussion to an appendix
- fixed missing impls of the optional contract `org.hibernate.type.AdjustableBasicType`
- improved handling of `NationalizationSupport` offered by a Dialect

NOTE :
- changes to `ColumnTransformerTest` are related to "composite basics" not being supported, not problems with `ColumnTransformer`.
- final failure in `org.hibernate.userguide.mapping.basic` is `SubselectTest#testRefreshLifecycle` which actually fails because refresh is not working properly
2021-05-13 09:58:20 -05:00
Christian Beikov
0c79d1d644 Fix service registry injection through connection provider delegate 2021-05-07 15:29:11 +02:00
Andrea Boriero
867dd52ab3 Re-enabled OneToOneFormulaTest 2021-05-07 09:59:08 +02:00
Christian Beikov
1a24c93155 Move tests from packages actionqueue, annotations, batch, boot, bytecode, id, resource, schemafilter, schematools, schemaupdate, schemavalidation, serialization, service, tool, unidir, util 2021-05-06 07:29:57 +02:00
Steve Ebersole
eb9bb2d82f Support for type coercion for values passed as ids and as query parameter bindings
- widening coercions
- valid (no over/under flow) narrowing coercions
- JpaCompliance setting
2021-05-04 07:21:11 -05:00
Christian Beikov
ff9e9eebc9 HHH-13946 Create Jakarta artifacts for hibernate-core, hibernate-envers, hibernate-jpamodelgen and hibernate-testing 2021-04-30 11:41:05 +02:00
Andrea Boriero
b27b414511 Fix EmbeddedForeignKeyDescriptor creation when o.h.mapping.Value has no columns, Re-enabled additional tests 2021-04-22 13:52:16 +02:00
Andrea Boriero
15e49692e9 Fix wrong creation of new instances for non aggregated id with no IdClass 2021-04-22 10:32:03 +02:00
Christian Beikov
4330d7345b
Checkstyle fix 2021-04-20 08:42:16 +02:00
Steve Ebersole
607234e7bf re-enable tests
re-organize some tests
o.h.test.hql.ParameterTest -> LegacyParameterTests
bug with binding ordinal parameter lists
created "standard domain model" for Hibernate's legacy Animal model
2021-04-19 16:44:25 -05:00
Andrea Boriero
badc99705a Merge remote-tracking branch 'upstream/main' into wip/6.0_merge 2021-04-16 13:19:16 +02:00
Steve Ebersole
b31f2c02d7 re-enable tests
re-organize some tests
CastNullSelectExpressionTest (not-implemented-yet)
2021-04-15 11:42:07 -05:00
Yoann Rodière
fcc63d9ab0 HHH-14529 Stop using two separate BootstrapServiceRegistries for the same SessionFactory in BaseCoreFunctionalTestCase 2021-04-15 14:01:28 +02:00
Steve Ebersole
3958ee2360 re-enable tests
re-organize some tests
work on `org.hibernate.test.hql.size`
improved key/target handling for fk-descriptor
2021-04-14 16:06:15 -05:00
Andrea Boriero
9c27e41184 Remove o.h.testing.junit5 package 2021-04-10 12:32:18 +02:00
Andrea Boriero
c1fcb6cb92 Rollback Transaction when an AssertionError occurrs 2021-04-08 17:33:43 +02:00
Andrea Boriero
6bd7a4d972 HHH-14503 - Migration of tests from jpa/test to orm/test/jpa 2021-04-08 17:33:43 +02:00
Steve Ebersole
3d90dbfbae re-enable tests
re-organize some tests
continuing with o.h.test.hql
improve parameter handling by tracking mapping-model types resolved for them in SQM->SQL translation
2021-04-08 08:08:54 -05:00
Christian Beikov
06b5eb43c6 HHH-11692 Introduce DISTINCT predicate in HQL and implement emulations 2021-04-07 18:28:38 +02:00
Steve Ebersole
51074eb9a0 re-enable tests
re-organize some tests
continuing with o.h.test.hql
fixed bug in JPA model building with dynamic entities
added NavigablePath#getUnaliasedLocalName to aid in resolving ModelParts as part of SQM->SQL
2021-04-01 11:07:28 -05:00