Commit Graph

13279 Commits

Author SHA1 Message Date
Andrea Boriero acd78256eb Fix statistics for native query 2021-11-25 14:03:04 +01:00
Andrea Boriero da05181c3a Update migration-guide.adoc 2021-11-25 14:03:04 +01:00
Andrea Boriero 92e8436014 Re-enable additional tests 2021-11-25 14:03:04 +01:00
Andrea Boriero 7f574f4a2a Merge branch 'wip/6.0_merge' into wip/6.0 2021-11-25 09:54:48 +01:00
Christian Beikov cbcec73d4f * Handle quoted identifiers in HQL and the Ordering parser
* Switch from the "expression" to "expressionOrPredicate" rule in the HQL grammar where it makes sense as required by some HQL tests
* Cleanup parser rule ordering to allow more keywords in the identifier rule
* Implement literal support for Ordering parser
* Add special AvgFunction as needed by H2, HSQL, DB2, SQL Server and Sybase that casts arguments to double if necessary
* Fix wrong deduplication of order by fragments in case a plural attribute is fetched multiple times
* Implement support for de-referencing any-valued mappings in HQL
* Avoid unnecessary entity subtypes in polymorphic splitted queries if a base type also matches the requested type
* Implement pagination support for polymorphic splitted queries
* Cleanup path part resolving by removing lots of duplicate code
* Aligh HQL parsing expectations to the expected behavior of 5.x
* Add method to `JavaType` that allows determining if a type is can be widened to another which is used for arithmetic type resolving
* Implement validations for fetch owner checking
* Fix issues with the id table creation due to lacking column lengths in the column DDL type
* Fix issues and add some optimizations related to multi-table delete handling
* Add the notion of a special "implicit" alias to avoid generating a unique alias for unaliased or implicit HQL joins
* Properly implement multiple bag fetch validation
* Make sure filter predicates are applied for all plural attribute joins
* Fix some issues with undecidable parameter type inference
* Fix some issues with negated SQM predicates not being converted to the proper SQL AST predicates
* Fix issues with qualifying DML target referencing columns
* Fix `is null` semantics for tuples referring to embeddable types
* Capture necessary details from JdbcValuesMetadata in the cached data to avoid executing a query on cache hit when types should be inferred
* Get rid of special CollectionPropertyNames and writeup a migration guide section for the replacements
2021-11-25 08:51:51 +01:00
Andrea Boriero bdc1e4103d Merge remote-tracking branch 'upstream/main' into wip/6.0_merge 2021-11-24 16:48:43 +01:00
Andrea Boriero 39dae088ec Update migration-guide 2021-11-24 16:35:23 +01:00
Andrea Boriero d21db9e807 Fix loading OnetoOne self referencing entity 2021-11-24 16:35:23 +01:00
Marius Klein f604e8fa33 HHH-14937 SybaseASE15 supports schemas and catalogs 2021-11-23 11:28:01 +01:00
Karel Maesen aded53a760 HHH-14808 Fix PredicateSmokeTest
Refactors SpatialTestBase to use a SessionFactoryAware
implementation that performs necessary initialisations
(e.g. H2).
2021-11-22 14:52:24 -06:00
Yoann Rodière 35f374aac7 HHH-14936 Avoid NPE in JdbcConnectionContext's static init 2021-11-22 12:22:07 +01:00
Christian Beikov eaea919cf5 Fix HBM based model binding wrt id-classes and move the last derived id tests 2021-11-19 16:29:56 +01:00
Christian Beikov b8429bca42 Introduce a proper EmbeddableMappingType for id-class and handle id-class uses uniformly 2021-11-19 16:29:56 +01:00
Andrea Boriero 971f58e335 Expose virtual id types in JPA metamodel 2021-11-19 16:29:56 +01:00
Andrea Boriero 57f7e59e14 Fix SqlResultSetMappingDescriptor generating ResultMemento for Embeddable attributes 2021-11-19 16:29:56 +01:00
Andrea Boriero a771d035c9 Fix null embeddable with circular reference 2021-11-19 16:29:56 +01:00
Andrea Boriero b520752c8d Fix issue with class used as IdClass and also embedded in another IdClass 2021-11-19 16:29:56 +01:00
Andrea Boriero 07a314b663 Fix EmbeddableMappingType trowing exception wehen the attributeMapping is an instance of EmbeddedAttributeMapping 2021-11-19 16:29:56 +01:00
Andrea Boriero 55b1ec48f1 Fix MappingModelCreationHelper#interpretToOneKeyDescriptor() throwing NotYetImplementedFor6Exception for NonAggregateIdentifier 2021-11-19 16:29:56 +01:00
Andrea Boriero d33200b309 Fix using wrong vale mapping for paramter binging with EntityCollectionPart 2021-11-19 16:29:56 +01:00
Andrea Boriero 411355852a Fix PersistenceUnitUtilImpl#getIdentifier() throws NPE for NonAggregateIdentifier 2021-11-19 16:29:56 +01:00
Andrea Boriero eae9a39b14 Fix throw exception when an Entity has an EmbeddedId being also an IdClass of another Entity 2021-11-19 16:29:56 +01:00
Andrea Boriero 9d08be53a6 Fix load NonAggregateIdentifier by id 2021-11-19 16:29:56 +01:00
Andrea Boriero b971d76bf6 Merge remote-tracking branch 'upstream/main' into wip/6.0 2021-11-18 12:45:25 +01:00
Jan Schatteman 69d2c65880
Removal @Deprecated from availablesettings (#4369)
* Remove deprecated *_CLASSLOADER from AvailableSettings

Signed-off-by: Jan Schatteman <jschatte@redhat.com>

* Remove deprecated HBM2DLL_CREATE_NAMESPACES and DEPRECATED_EXTRA_PHYSICAL_TABLE_TYPES from AvailableSettings

Signed-off-by: Jan Schatteman <jschatte@redhat.com>

* Remove deprecated and duplicated HBM2DDL_DB_NAME, HBM2DDL_DB_VERSION, HBM2DDL_DB_MAJOR_VERSION, HBM2DDL_DB_MINOR_VERSION from AvailableSettings

Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-11-17 14:52:52 +01:00
Christian Beikov e1354b3a81 Switch to TCK 3.0.1 with JDK 11 in Hibernate 6.0 2021-11-17 12:41:19 +01:00
nathan.xu c3631970a5 HHH-14927 fix other obvious defects in user guide 2021-11-17 10:52:56 +01:00
nathan.xu f54f6bdf4e HHH-14927 bump current hibernate version from 5.5 to 5.6 in user guide 2021-11-17 10:52:56 +01:00
Andrea Boriero 088baa6e86 Fix compilation errors after merge 2021-11-16 17:35:44 +01:00
Andrea Boriero 8c5adc86d0 Merge remote-tracking branch 'upstream/main' into wip/6.0_merge_main_1 2021-11-16 17:23:06 +01:00
Sanne Grinovero 1dc49271c1 HHH-14540 Maintain strict API backwards compatibility 2021-11-16 15:32:05 +00:00
Chris Cranford e155fc551e HHH-14540 Don't share session-scoped interceptors with temp session 2021-11-16 15:27:51 +00:00
Andrea Boriero 8e8cccfa70 Re-enable additional tests 2021-11-16 13:51:26 +01:00
Andrea Boriero 8042cc2cdb Implemented BasicValue#accept method 2021-11-16 13:51:26 +01:00
Andrea Boriero 115234e70e Fix lazy toOne mappedby proxy generation 2021-11-16 13:51:26 +01:00
Andrea Boriero c1e16b4e4a Re-enabled additional tests 2021-11-16 13:51:26 +01:00
Andrea Boriero 2e74d026f2 Merge branch 'wip/6.0_merge_main' into wip/6.0 2021-11-16 09:28:40 +01:00
Andrea Boriero 0c0fab9cef Merge remote-tracking branch 'upstream/main' into wip/6.0_merge_main 2021-11-16 09:27:42 +01:00
Maciej Walkowiak 3845d2f97f Refer correct entity in "Composite identifiers with associations" section
Code sample uses `Book` entity instead of `PersonAddress`.
2021-11-16 08:47:03 +01:00
Björn Kautler fa3a364b79 Fix dead link in documentation 2021-11-16 08:46:07 +01:00
Jan Schatteman 37703e2e4c
Remove deprecated properties from AvailableSettings (#4362)
* Remove deprecated ACQUIRE_CONNECTIONS and RELEASE_CONNECTIONS from AvailableSettings

Signed-off-by: Jan Schatteman <jschatte@redhat.com>

* Remove deprecated PROXOOL_PREFIX and PREFER_POOLED_VALUES_LO from AvailableSettings

Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-11-15 23:03:16 +01:00
Christian Beikov 3e97b1c205 Unify parameter type resolving 2021-11-15 16:17:11 +01:00
Karel Maesen f967e16fee HHH-14925 Using JavaTypeRegistry#findDescriptor() 2021-11-15 16:17:11 +01:00
Karel Maesen 8a96c4e7c7 HHH-4925 Minor fixes 2021-11-15 16:17:11 +01:00
Karel Maesen fa48448f77 HHH-14925 Fix type resolution in SqmCriteriaNodeBuilder 2021-11-15 16:17:11 +01:00
Karel Maesen 64331aada6 Fix documentation issues 2021-11-15 16:17:11 +01:00
Karel Maesen 5a7ad6d11c HHH-14925 Add additional unit tests. 2021-11-15 16:17:11 +01:00
Karel Maesen 0300e54fef HHH-14925 Remove deprecated BasicType implementations 2021-11-15 16:17:11 +01:00
Karel Maesen f4909b7046 Downgrade H2 2021-11-15 16:17:11 +01:00
Karel Maesen e48da8d52c HHH-14925 Switch for Postgis to javatype/jdbctype
Also some documentation improvements and dead code removal.
2021-11-15 16:17:11 +01:00