Commit Graph

12765 Commits

Author SHA1 Message Date
Andrea Boriero 9c2c7e13dd HHH-14875 Slow query log seems to be missing in Hibernate 6.0.0.Beta1 2021-10-19 17:30:54 +02:00
Andrea Boriero dd36e349b1 Merge branch 'wip/6.0_merge' into wip/6.0 2021-10-19 16:36:48 +02:00
Christian Beikov a4e406a54e * Add SqlTypes as analogy to java.sql.Types containing constants for Hibernate specified types
* Add FormatMapper for a pluggable JSON serialization and deserialization strategy
* Add native UUID type support for H2, Cockroach, PostgreSQL
* Add native INET type support for Cockroach, PostgreSQL
* Add native JSON type support for MySQL, Cockroach, PostgreSQL
* Add native INTERVAL SECOND type support for H2, Cockroach, PostgreSQL
* Add fallback JdbcTypes for new SqlTypes
* Register column types for new SqlTypes
* Add support for BasicTypeReference in TypedParameterValue
* Fix a lot of method signatures with respect to type parameter issues
* Fix CustomType, UserType and EnhancedUserType with respect to type parameters
* Get rid of StringRepresentableType and some other unused deprecated methods
2021-10-19 16:33:36 +02:00
Christian Beikov 541302a511 Get rid of most basic type subclasses 2021-10-19 16:33:36 +02:00
Christian Beikov 4f861e13ba Properly handle SQLFunction registrations 2021-10-19 16:33:36 +02:00
Andrea Boriero d2906c022e Upgrade org.asciidoctor.jvm.convert to 3.3.2 2021-10-19 16:23:42 +02:00
Andrea Boriero 7f46f11f3b Merge remote-tracking branch 'upstream/main' into wip/6.0_merge 2021-10-19 16:23:07 +02:00
Andrea Boriero 6ddf3530fa EntityValuedFetchable add isOptional and isUnwrapproxy methods 2021-10-19 13:13:47 +02:00
Andrea Boriero 6ffcee44a6 search second level cache if proxy entity metamodel has subclasses 2021-10-19 13:13:47 +02:00
Andrea Boriero 1ffa1347a3 Rename ToOneAttributeMapping isInternalLoadNullable to isOptional 2021-10-19 13:13:47 +02:00
Andrea Boriero f02ffde061 Re-enabled additional tets 2021-10-19 13:13:47 +02:00
Andrea Boriero ad5326a8ce Re-enabled additional tests 2021-10-19 13:13:47 +02:00
Andrea Boriero 73452ae61f Fix ToOne with Ignore not found lazy loading 2021-10-19 13:13:47 +02:00
Andrea Boriero d95dad597c Re-enabled additional tests 2021-10-19 13:13:47 +02:00
Andrea Boriero 449d4adc27 Fix cascade loader not join associations after first collection 2021-10-19 13:13:47 +02:00
Andrea Boriero 57e2d25dd3 Re-enabled additional tests 2021-10-19 13:13:47 +02:00
Andrea Boriero dcab4bf7bf Fix unfetched collection assembling 2021-10-19 13:13:47 +02:00
Andrea Boriero d616f2aa55 Fix ToOneAttributeMapping tableGroup creation 2021-10-19 13:13:47 +02:00
Andrea Boriero fa694c5d41 Re-enabled additional tests 2021-10-19 13:13:47 +02:00
Andrea Boriero 563ee45530 Fix delayed entity fetch loading trying to instantiate abstract class 2021-10-19 13:13:47 +02:00
Andrea Boriero 7eccda9f36 Fix java.lang.ClassCastException: org.hibernate.internal.StatelessSessionImpl cannot be cast to org.hibernate.event.spi.EventSource 2021-10-19 13:13:47 +02:00
Christian Beikov a3920e5892 Small test fixes. Fix unwraps and mutation strategy configuration 2021-10-19 11:12:26 +02:00
Christian Beikov 9fa2671cbc Update to Gradle 7.2 2021-10-19 11:07:39 +02:00
Christian Beikov 8a0e4a9cdd HHH-14663 : Add testing for s390x 2021-10-19 11:07:39 +02:00
Sanne Grinovero 9dd6cd06c9 HHH-14882 StandardStack needs to support null entries 2021-10-18 13:11:46 +01:00
Sanne Grinovero ef3fe11ae6 HHH-14882 Minor implementation optimisations in internal StandardStack
The current StandardStack implementation is based on a LinkedList, which is well known to be a suboptimal choice; this should be switched to a lazily allocated ArrayDeque.
2021-10-18 13:11:46 +01:00
Sanne Grinovero 6008264711 HHH-14816 Optimise LockMode#fromExternalForm for common case 2021-10-18 12:19:44 +01:00
Sanne Grinovero 3bee3a1c79 HHH-14816 Minor refactoring of LockModeTypeHelper conversions 2021-10-18 12:19:44 +01:00
Dariush Moshiri 8e0f0b4123 HHH-14816 Can not set lock mode with QueryHint due to type case problem 2021-10-18 12:19:44 +01:00
nathan.xu 8cf51a601b HHH-14883 Fix an Asciidoc defect and other verbiage issues in 'spatial' chapter in user guide 2021-10-18 09:47:52 +01:00
Andrea Boriero c545cee28c Merge remote-tracking branch 'upstream/main' into wip/6.0_merge 2021-10-15 12:07:14 +02:00
Yoann Rodière 8afce5b5ed HHH-14869 Fix CallbackRegistryImpl#registerCallbacks considering all given callbacks have the same type 2021-10-15 10:05:29 +02:00
Yoann Rodière 965f5bd925 HHH-14869 Extract JPA listener definitions when building metadata rather than when creating the SessionFactory 2021-10-15 10:05:29 +02:00
Sanne Grinovero acc42253c3
Fixed typo in migration-guide.adoc 2021-10-14 22:06:01 +01:00
Andrea Boriero 7b5e8de7bf Merge remote-tracking branch 'upstream/main' into wip/6.0_merge 2021-10-14 18:45:09 +02:00
Yoann Rodière 97f75f2aeb HHH-14881 Test attribute converters provided through CDI and configured through orm.xml 2021-10-14 17:07:29 +02:00
Yoann Rodière 7cc0c8370b HHH-14881 Allow providing attribute converters through CDI when configured through orm.xml 2021-10-14 17:07:29 +02:00
Yoann Rodière fc636995c3 HHH-14880 orm.xml: Take into account <package> for <converter class="..."> 2021-10-14 15:22:40 +02:00
Andrea Boriero 4323f9f011 HHH-14874 Lazy loading of basic attributes in different @LazyGroups throws ArrayIndexOutOfBoundsException 2021-10-13 18:33:19 +02:00
Andrea Boriero 3b47b85ce8 HHH-14874 Add test for issue 2021-10-13 18:33:19 +02:00
Andrea Boriero cc31223b78 Re-enabled additional tests 2021-10-13 18:33:19 +02:00
Steve Ebersole 92e1f593dc Drop doc section on JACC 2021-10-12 10:48:02 -05:00
Andrea Boriero 4543ab176b Re-enabled additional tests 2021-10-12 15:20:24 +02:00
Andrea Boriero 5f6e53334c HHH-13766 Add test for issue 2021-10-12 13:47:09 +02:00
Andrea Boriero 9b48207ba0 Re-enabled additional test 2021-10-12 12:09:15 +02:00
Andrea Boriero 6b5cb2cfc4 Merge remote-tracking branch 'upstream/main' into wip/6.0 2021-10-12 11:49:54 +02:00
Yoann Rodière e93d33be16 Have SessionFactory#getMetamodel() return a JpaMetamodel
It just makes sense, since JpaMetamodel is Hibernate ORM's
extension of jakarta.persistence.metamodel.Metamodel,
and SessionFactory#getMetamodel() is Hibernate ORM's extension
of EntityManager#getMetamodel().
2021-10-11 17:40:30 -05:00
Yoann Rodière a16305e01f Minor cleanup of MappingMetamodelImpl 2021-10-11 17:40:30 -05:00
Yoann Rodière 0c27e3428d Remove a few redundant method overrides in metamodel interfaces 2021-10-11 17:40:30 -05:00
Steve Ebersole dd1fb78f32 6.0.0.Beta1 post-release 2021-10-11 17:40:30 -05:00