Commit Graph

7117 Commits

Author SHA1 Message Date
Christian Beikov 1544493edc Wire up custom collection types 2021-08-16 17:36:50 +02:00
Andrea Boriero ffff90757a Merge remote-tracking branch 'upstream/main' into wip/6.0 2021-08-16 16:21:26 +02:00
Andrea Boriero 8174f8ab9d Re-enabled additional tests 2021-08-16 16:03:30 +02:00
Andrea Boriero 7e4275c46e Loading circula bidirectional fetch associations not referring to PK 2021-08-16 16:03:30 +02:00
Andrea Boriero 053153847b Initialize collection with key not referring to PK 2021-08-16 16:03:30 +02:00
Yoann Rodière 544dbbf762 HHH-14770 Revert "HHH-14770 Optimise access to EntityPersister in Metamodel via Class type"
This reverts commit 9a335c1c04.
2021-08-12 11:57:00 +02:00
Andrea Boriero ad61c8f1d4 Fix errors after upstream/main merge 2021-08-11 09:23:43 +02:00
Andrea Boriero 52b83829f1 Merge remote-tracking branch 'upstream/main' into wip/6.0 2021-08-11 09:22:57 +02:00
boris-unckel e1b82b005c HHH-14762 Testsuite: Assert.notNull must not be used on primitive types
Fix https://hibernate.atlassian.net/browse/HHH-14762
2021-08-10 14:08:34 +02:00
Sanne Grinovero fb0279e3a7 HHH-14625 Avoid performing a ServiceRegistryLookup in JtaTransactionCoordinatorImpl constructor 2021-08-09 17:28:37 +01:00
Andrea Boriero fb62f9611a Fix issue with query alias case sensitive and JPAQL strict compliance 2021-08-09 17:55:16 +02:00
Sanne Grinovero 135361a6b8 HHH-14776 Optimise Loader operations by using the Persister directly 2021-08-09 15:55:46 +01:00
Sanne Grinovero edcce3e1c2 HHH-14776 Promote method instantiate(EntityPersister, Serializable) from SessionImplementor to SharedSessionContractImplementor 2021-08-09 15:55:46 +01:00
Sanne Grinovero 9a335c1c04 HHH-14770 Optimise access to EntityPersister in Metamodel via Class type 2021-08-09 12:55:05 +01:00
Andrea Boriero d4c296b732 Merge remote-tracking branch 'upstream/main' into wip/6.0 2021-08-09 12:48:00 +02:00
Sanne Grinovero 2390416318 HHH-14773 JdbcCoordinatorImpl micro improvement: unguarded tracev parameters should be constant 2021-08-09 10:58:18 +01:00
boris-unckel c9b8776d3a HHH-14760 Close resource - potential resource leak
Fixes https://hibernate.atlassian.net/browse/HHH-14760
2021-08-09 10:40:27 +01:00
boris-unckel 3be25aa899 HHH-14760 Close resource - potential resource leak
Fixes https://hibernate.atlassian.net/browse/HHH-14760
2021-08-09 10:28:06 +01:00
Christian Beikov 2f166c31df Fix some documentation tests and respect filters in Session.find as per HHH-14772, and respect explicit polymorphism 2021-08-09 07:22:57 +02:00
Christian Beikov b6683d2352 Fix some more result set mapping issues and fix HHH-7525 as well as HHH-10504 2021-08-06 23:15:50 +02:00
Christian Beikov dd650705d0 Add some delay between save an update of update-timestamp tests 2021-08-06 23:15:50 +02:00
Christian Beikov 62514e9e53 Fix resolving parameter type if other side is a subquery returning a collection part 2021-08-06 23:15:50 +02:00
Christian Beikov b30c9aea8e Move annotations.loader tests and implement support for collection returns 2021-08-06 23:15:50 +02:00
Christian Beikov 15f2dca36d Move annotations.inheritance tests and implement qualifier omission for formulas in DML statements 2021-08-06 23:15:50 +02:00
Christian Beikov f84585c5ed Move annotations.immutable tests and implement immutable update warning/error 2021-08-06 23:15:50 +02:00
Christian Beikov eaba3acc20 Move annotations.idmanytoone tests and fix property lookup of identifierMapper 2021-08-06 23:15:50 +02:00
Christian Beikov 7b58e700db Make sure the SerializableJavaTypeDescriptor is never used for entities. Fix a wrong JDBC mapping causing problems converted attributes. Force IMMEDIATE fetch timing for many-to-one associations with NotFound.IGNORE 2021-08-06 23:15:50 +02:00
Christian Beikov 5da81c2263 Move annotations.formula package 2021-08-06 23:15:50 +02:00
Christian Beikov adf8da6bed Move annotations.fetch package 2021-08-06 23:15:50 +02:00
Christian Beikov 7216823afd Move annotations.enumerated tests and fix some type parameterization and enum related issues 2021-08-06 23:15:50 +02:00
Christian Beikov 38e1704f43 Fix creation of proper navigable path for identifier mapper 2021-08-06 23:15:50 +02:00
Christian Beikov 75f4e635f2 Fix HBM return-join handling 2021-08-06 23:15:50 +02:00
Christian Beikov 95a34e2895 Move test.type.contributor and implement support for constructor injection of TypeBootstrapContext 2021-08-06 23:15:50 +02:00
Christian Beikov d3810b8f7a Implement support for non-primary-key foreign keys 2021-08-06 14:46:35 +02:00
Jan Schatteman 3ec8b27b2a Added doc notes on the filter clause and the ilike predicate
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-08-05 23:35:17 +02:00
Jan Schatteman 0c1c469352 HHH-14739 - Implement ILike support
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-08-05 23:35:17 +02:00
Christian Beikov be485796b1 Cleanup the grammar and generify same-structured function rules 2021-08-05 17:37:00 +02:00
Christian Beikov e0076f8e20 Fix generated value issues with Oracle 2021-08-05 09:50:28 +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
Steve Ebersole 53fc490181 Document value generation;
Moved `@CurrentTimestamp` from src/test/java to src/main/java
2021-08-03 14:03:32 -05:00
Steve Ebersole 3b78f30309 Few Gradle file related tasks
- dropped explicit apt output handling - Gradle has that built in
- Switched other uses to write to the standard `${buildDir}/generated/sources` dir
2021-08-02 16:35:16 -05:00
Steve Ebersole 230c787b3c Fixes for Yoann's search + 6.0 tracking
- Support for generated values
- See `@ProposedGenerated` for proposed change to `@Generated`; without that change, `@Generated` will not work with update-generation; nor does it work on 5.x
2021-08-02 15:43:19 -05:00
Christian Beikov b8afa46d8f Fix row value comparison emulation rendering issue that occurred on SAP HANA 2021-08-02 14:56:02 +02:00
Christian Beikov 4ee71faecf Improve SemanticQueryBuilder performance and fix a few generics related issues 2021-08-02 14:56:02 +02:00
Andrea Boriero e93f43a43f Merge remote-tracking branch 'upstream/main' into wip/6.0 2021-08-02 14:02:30 +02:00
Steve Ebersole df9df2a738 Fixes for Yoann's search + 6.0 tracking
- test for Criteria handling.  Unable to reproduce unfortunately
2021-07-29 13:31:21 -05:00
Steve Ebersole 8362ce72ba Fixes for Yoann's search + 6.0 tracking
query-options - null cache-mode
2021-07-29 13:31:21 -05:00
Gail Badner b1975ba05d HHH-11926 : Add FailureExpected test 2021-07-29 12:06:02 +01:00
Sanne Grinovero 83975eaddf HHH-14755 Allow configuring the DefaultIdentifierGeneratorFactory to ignore BeanContainer(s) 2021-07-29 12:04:37 +01:00
Sanne Grinovero d4ed42149b HHH-14755 Remove some dead code from DefaultIdentifierGeneratorFactory 2021-07-29 12:04:37 +01:00
boris-unckel 78e620d9fe HHH-14761 Exception message String.format too many variables
Fix https://hibernate.atlassian.net/browse/HHH-14761
2021-07-29 12:02:00 +01:00
Christian Beikov e82a45d616 Fix issues with Oracle 12.1c 2021-07-28 16:26:09 +02:00
Christian Beikov ad49a41cd9 Fix issues with HANA to allow running the testsuite 2021-07-28 16:26:09 +02:00
Christian Beikov 87604549ef Support usage of boolean expression in predicate context 2021-07-28 16:26:09 +02:00
Christian Beikov 87258af3f9 HHH-14495 Use table name, rather than entity name, as base for per-entity implicit sequence naming 2021-07-28 16:26:09 +02:00
Gavin King 8dd0ed7c2d clean imports and remove useless override 2021-07-28 15:22:41 +02:00
Gavin King 7aeb03beea remove older getJdbcType() method 2021-07-28 15:22:41 +02:00
Gavin King 526b3659c8 more correct test code 2021-07-28 15:22:41 +02:00
Gavin King 07096e7cc1 introduce JDBCTypeDescriptor.getDefaultSqlTypeCode()
and rename sqlType -> jdbcTypeCode in Type hierarchy for consistency

See https://github.com/hibernate/hibernate-orm/discussions/4088
2021-07-28 15:22:41 +02:00
Steve Ebersole d16073f7ce remove dependency on hibernate-core tests from hibernate-envers 2021-07-27 19:38:44 -05:00
Steve Ebersole 1c100f5af0 Tests for binding composite-valued query parameters 2021-07-27 09:17:15 -05:00
Alvaro Esteban Pedraza aa5d40852c HHH-10661 Reduce code duplication in serialize method of StatefulPersistenceContext 2021-07-27 14:51:01 +01:00
Sanne Grinovero ff9f6efc0d HHH-11413 Fixing code style 2021-07-27 14:13:23 +01:00
Dariush Moshiri 787f0a44ea HHH-11413: Native named query creation fails unintuitively when no resultClass is specified 2021-07-27 14:13:08 +01:00
Steve Ebersole 6d9bcd09c1 Tests for binding composite-valued query parameters 2021-07-26 16:37:18 -05:00
Steve Ebersole c1732f867c Query domain-results 2021-07-26 15:16:37 -05:00
Steve Ebersole 9f2ae95397 Gradle task cache
Gradle 7 prep
2021-07-26 13:51:38 -05:00
Andrea Boriero 967553add4 Fix multiparameter binding issue 2021-07-26 17:29:49 +02:00
Andrea Boriero e4571cbf30 Fix issue with Sybase,the hbm mapping was causing errors with case sensitive dbs 2021-07-26 16:43:26 +02:00
Andrea Boriero 77d870f08c Re-enabled additional tests 2021-07-26 16:43:26 +02:00
Andrea Boriero 3aa875b037 Fix ScrollableResultsImpl not initializing non lazy collections 2021-07-26 16:43:26 +02:00
Andrea Boriero ba5d90d116 Fix StatelessSession#uniqueResult() not clearing the temporary PersistenceContext 2021-07-26 16:43:26 +02:00
Andrea Boriero 4eb27e61b1 Fix StateleSession call to PostLoadEvent causing NPE 2021-07-26 16:43:26 +02:00
Andrea Boriero 78b8b4aed8 Fix close connection when a transaction is not active and connection handling mode is not equal to AFTER_STATEMENT 2021-07-26 16:43:26 +02:00
Andrea Boriero a648e637cc Re-enabled additional tests 2021-07-26 16:43:26 +02:00
Andrea Boriero 3022371d3e 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 96f8273673 Fix create a new instance while a corresponding one is loading 2021-07-26 16:43:26 +02:00
Andrea Boriero 8dcd63dcee Fix Sybase error when use jdbc metadata defaults is set to false 2021-07-26 16:43:26 +02:00
Andrea Boriero 6c98d3400f Change default MysqlDialect constructor to use version 5 instead of 4 2021-07-26 16:43:26 +02:00
Andrea Boriero c06788dd88 Re-enabled additional tests 2021-07-26 16:43:26 +02:00
Andrea Boriero 821d85b9a3 Implemented EmbeddableMappingType and EmbeddedIdentifierMappingImpl applySqlSelections methods 2021-07-26 16:43:26 +02:00
Andrea Boriero ab8cfe0d83 Fix multi value parameters expansion for SelfRenderingSqmFunction 2021-07-26 16:43:26 +02:00
Andrea Boriero 3f7044eebe Re-enabled additional tests 2021-07-26 16:43:26 +02:00
Karel Maesen 6b4f4755f3 HHH-14745 Fix formatting 2021-07-26 16:26:11 +02:00
Karel Maesen 649b2187e1 HHH-14745 Directly contribute functions to the SqmFunctionRegistry 2021-07-26 16:26:11 +02:00
Karel Maesen c0a18ee99e HHH-14745 Add ordinal() to avoid non-determinism 2021-07-26 16:26:11 +02:00
Karel Maesen 9aba4532cd HHH-147 Fix method name in contract 2021-07-26 16:26:11 +02:00
Karel Maesen 21dd7a35f1 HHH-14745 Add FunctionContributor contract 2021-07-26 16:26:11 +02:00
Andrea Boriero 76df5a5f4b Merge remote-tracking branch 'upstream/main' into wip/6.0 2021-07-26 15:15:29 +02:00
Sanne Grinovero 0325cd632a HHH-14740 Still need the nullcheck removed in HHH-14727 2021-07-20 14:10:06 +01:00
Steve Ebersole e2e93e51b7 improvements to JAXB XJC handling 2021-07-19 16:45:50 -05:00
Andrea Boriero c0041ba073 HHH-14772 InformationExtractorJdbcDatabaseMetaDataImpl#getCurrentSchema() method returns currentCatalog if schema == null 2021-07-18 21:05:57 +01:00
Sanne Grinovero f60d8bcd12 HHH-14734 No good reason tu use TypeCache(s) with WithInlineExpunction 2021-07-16 16:43:02 +01:00
Sanne Grinovero e782ddf8f9 HHH-14733 Not useful to clear the bycodeprovider caches on sessionFactoryClosing 2021-07-16 16:43:02 +01:00
Sanne Grinovero 6608d03bfc HHH-14732 ProxyDefinitionHelpers are immutable and can be declared static 2021-07-16 16:43:02 +01:00
Sanne Grinovero 0768663895 HHH-14731 Simplify SPI ProxyFactoryFactory#buildBasicProxyFactory to accept a single class or interface only
And deprecate method org.hibernate.bytecode.spi.ProxyFactoryFactory#buildBasicProxyFactory(java.lang.Class, java.lang.Class[])
2021-07-16 16:43:02 +01:00
Andrea Boriero 6c98441518 HHH-14730 Avoid loading the same entity proxy twice for the same result set 2021-07-16 13:22:37 +02:00
Sanne Grinovero 5616284a12 HHH-14727 Minor code cleanup in StandardSQLExceptionConverter 2021-07-16 11:16:36 +01:00