[hibernate/hibernate-orm] 39a6f9: clean up CacheModeHelper
by Gavin King
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 39a6f9880b3444614d799b36a24b343ea5dc0cd5
https://github.com/hibernate/hibernate-orm/commit/39a6f9880b3444614d799b3...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2024-04-28 (Sun, 28 Apr 2024)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/jpa/internal/util/CacheModeHelper.java
Log Message:
-----------
clean up CacheModeHelper
Signed-off-by: Gavin King <gavin(a)hibernate.org>
Commit: 789cc12b8e2cc29d4791bc21d477507b8a3ebf48
https://github.com/hibernate/hibernate-orm/commit/789cc12b8e2cc29d4791bc2...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2024-04-28 (Sun, 28 Apr 2024)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/LockMode.java
M hibernate-core/src/main/java/org/hibernate/action/internal/EntityVerifyVersionProcess.java
M hibernate-core/src/main/java/org/hibernate/dialect/lock/OptimisticLockingStrategy.java
M hibernate-core/src/main/java/org/hibernate/event/internal/DefaultPostLoadEventListener.java
M hibernate-core/src/main/java/org/hibernate/internal/util/LockModeConverter.java
M hibernate-core/src/main/java/org/hibernate/loader/ast/internal/SingleIdEntityLoaderStandardImpl.java
M hibernate-core/src/test/java/org/hibernate/orm/test/jpa/lock/LockTest.java
Log Message:
-----------
HHH-18023 fix bugs with versioned LockModes
- NPE at commit time for OPTIMISTIC on entity with no version
- LockMode.OPTIMISTIC treated as equivalent to LockModeType.OPTIMISTIC
Signed-off-by: Gavin King <gavin(a)hibernate.org>
Commit: 16577020158a4ce1c3fbd78392b30da06e5ceca3
https://github.com/hibernate/hibernate-orm/commit/16577020158a4ce1c3fbd78...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2024-04-28 (Sun, 28 Apr 2024)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java
M hibernate-core/src/main/java/org/hibernate/loader/ast/internal/LoaderHelper.java
Log Message:
-----------
HHH-18024 fix getLockMode() on read-only entity
it resulted in spurious exception claiming entity was deleted
Signed-off-by: Gavin King <gavin(a)hibernate.org>
Commit: 1e0e0ac02b8d3f2e3c51f87608ff5ccbf9719395
https://github.com/hibernate/hibernate-orm/commit/1e0e0ac02b8d3f2e3c51f87...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2024-04-28 (Sun, 28 Apr 2024)
Changed paths:
M hibernate-core/src/test/java/org/hibernate/orm/test/jpa/lock/BatchAndLockTest.java
Log Message:
-----------
HHH-18023 fix wrong test assertions
OPTIMISTIC means the version gets checked at end of tx,
this lock mode is never acquired implicitly
Signed-off-by: Gavin King <gavin(a)hibernate.org>
Commit: fe7b3c9e7eab1cc328429ae9356ed5a0eb27bcfd
https://github.com/hibernate/hibernate-orm/commit/fe7b3c9e7eab1cc328429ae...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2024-04-28 (Sun, 28 Apr 2024)
Changed paths:
M hibernate-core/src/test/java/org/hibernate/orm/test/locking/LockModeTest.java
Log Message:
-----------
HHH-18023 fix questionable test
PESSIMISTIC_READ is not really a "more exclusive" lock than UPGRADE_NOWAIT
Signed-off-by: Gavin King <gavin(a)hibernate.org>
Compare: https://github.com/hibernate/hibernate-orm/compare/07dc9f0a68cc...fe7b3c9...
To unsubscribe from these emails, change your notification settings at https://github.com/hibernate/hibernate-orm/settings/notifications
4 months
[hibernate/hibernate-orm] 7e3b72: HHH-18049 - Handle <exclude-default-listeners/> an...
by Steve Ebersole
Branch: refs/heads/wip/7.0
Home: https://github.com/hibernate/hibernate-orm
Commit: 7e3b72ae27e462522bd5247e7034bf6a3f1f0ce6
https://github.com/hibernate/hibernate-orm/commit/7e3b72ae27e462522bd5247...
Author: Steve Ebersole <steve(a)hibernate.org>
Date: 2024-05-01 (Wed, 01 May 2024)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/models/xml/internal/ManagedTypeProcessor.java
M hibernate-core/src/main/java/org/hibernate/boot/models/xml/internal/XmlAnnotationHelper.java
A hibernate-core/src/test/java/org/hibernate/orm/test/jpa/callbacks/xml/common/CallbackTarget.java
A hibernate-core/src/test/java/org/hibernate/orm/test/jpa/callbacks/xml/complete/LineItem.java
A hibernate-core/src/test/java/org/hibernate/orm/test/jpa/callbacks/xml/complete/LineItemSuper.java
A hibernate-core/src/test/java/org/hibernate/orm/test/jpa/callbacks/xml/complete/ListenerA.java
A hibernate-core/src/test/java/org/hibernate/orm/test/jpa/callbacks/xml/complete/ListenerB.java
A hibernate-core/src/test/java/org/hibernate/orm/test/jpa/callbacks/xml/complete/ListenerC.java
A hibernate-core/src/test/java/org/hibernate/orm/test/jpa/callbacks/xml/complete/ListenerCompleteXmlTests.java
A hibernate-core/src/test/java/org/hibernate/orm/test/jpa/callbacks/xml/complete/Order.java
A hibernate-core/src/test/java/org/hibernate/orm/test/jpa/callbacks/xml/complete/Product.java
A hibernate-core/src/test/java/org/hibernate/orm/test/jpa/callbacks/xml/replace/LineItem.java
A hibernate-core/src/test/java/org/hibernate/orm/test/jpa/callbacks/xml/replace/LineItemSuper.java
A hibernate-core/src/test/java/org/hibernate/orm/test/jpa/callbacks/xml/replace/ListenerA.java
A hibernate-core/src/test/java/org/hibernate/orm/test/jpa/callbacks/xml/replace/ListenerB.java
A hibernate-core/src/test/java/org/hibernate/orm/test/jpa/callbacks/xml/replace/ListenerC.java
A hibernate-core/src/test/java/org/hibernate/orm/test/jpa/callbacks/xml/replace/ListenerReplacementTests.java
A hibernate-core/src/test/java/org/hibernate/orm/test/jpa/callbacks/xml/replace/Order.java
A hibernate-core/src/test/java/org/hibernate/orm/test/jpa/callbacks/xml/replace/Product.java
R hibernate-core/src/test/java/org/hibernate/orm/test/jpa/compliance/callback/listeneroverrides/CallbackTarget.java
R hibernate-core/src/test/java/org/hibernate/orm/test/jpa/compliance/callback/listeneroverrides/LineItem.java
R hibernate-core/src/test/java/org/hibernate/orm/test/jpa/compliance/callback/listeneroverrides/LineItemSuper.java
R hibernate-core/src/test/java/org/hibernate/orm/test/jpa/compliance/callback/listeneroverrides/ListenerA.java
R hibernate-core/src/test/java/org/hibernate/orm/test/jpa/compliance/callback/listeneroverrides/ListenerB.java
R hibernate-core/src/test/java/org/hibernate/orm/test/jpa/compliance/callback/listeneroverrides/ListenerBase.java
R hibernate-core/src/test/java/org/hibernate/orm/test/jpa/compliance/callback/listeneroverrides/ListenerC.java
R hibernate-core/src/test/java/org/hibernate/orm/test/jpa/compliance/callback/listeneroverrides/Order.java
R hibernate-core/src/test/java/org/hibernate/orm/test/jpa/compliance/callback/listeneroverrides/OverridesTests.java
R hibernate-core/src/test/java/org/hibernate/orm/test/jpa/compliance/callback/listeneroverrides/Product.java
A hibernate-core/src/test/resources/mappings/callbacks/complete.xml
R hibernate-core/src/test/resources/mappings/callbacks/listener_overrides.xml
A hibernate-core/src/test/resources/mappings/callbacks/replace.xml
Log Message:
-----------
HHH-18049 - Handle <exclude-default-listeners/> and <exclude-superclass-listeners/>
To unsubscribe from these emails, change your notification settings at https://github.com/hibernate/hibernate-orm/settings/notifications
4 months
[hibernate/hibernate-orm] 9e6f1f: HHH-18054 Support for JPA 3.2 @CheckConstraint
by Andrea Boriero
Branch: refs/heads/wip/7.0
Home: https://github.com/hibernate/hibernate-orm
Commit: 9e6f1f05631afc9a3b1958cc672587386c110807
https://github.com/hibernate/hibernate-orm/commit/9e6f1f05631afc9a3b1958c...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2024-05-08 (Wed, 08 May 2024)
Changed paths:
M hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/MySQLLegacyDialect.java
M hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/OracleLegacyDialect.java
M hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/SQLServerLegacyDialect.java
M hibernate-core/src/main/java/org/hibernate/boot/model/internal/AnnotatedColumn.java
M hibernate-core/src/main/java/org/hibernate/boot/model/internal/AnnotatedJoinColumn.java
M hibernate-core/src/main/java/org/hibernate/boot/model/internal/CollectionBinder.java
M hibernate-core/src/main/java/org/hibernate/boot/model/internal/EntityBinder.java
M hibernate-core/src/main/java/org/hibernate/boot/model/internal/TableBinder.java
M hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/MySQLDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/OracleDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/SQLServerDialect.java
M hibernate-core/src/main/java/org/hibernate/mapping/CheckConstraint.java
M hibernate-core/src/main/java/org/hibernate/tool/schema/internal/ColumnDefinitions.java
M hibernate-core/src/main/java/org/hibernate/tool/schema/internal/StandardTableExporter.java
A hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/checkconstraint/column/Another.java
A hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/checkconstraint/column/AnotherTestEntity.java
A hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/checkconstraint/column/ColumnCheckConstraintTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/checkconstraint/column/TestEntity.java
A hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/checkconstraint/table/Another.java
A hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/checkconstraint/table/AnotherTestEntity.java
A hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/checkconstraint/table/EntityWithSecondaryTables.java
A hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/checkconstraint/table/TableCheckConstraintTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/checkconstraint/table/TestEntity.java
Log Message:
-----------
HHH-18054 Support for JPA 3.2 @CheckConstraint
Commit: 75c45f486f9e69c1b2fd0891d2b8e8362fc8fc05
https://github.com/hibernate/hibernate-orm/commit/75c45f486f9e69c1b2fd089...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2024-05-08 (Wed, 08 May 2024)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/model/internal/AnnotatedColumns.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/checkconstraint/column/AnotherTestEntity.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/checkconstraint/column/ColumnCheckConstraintTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/checkconstraint/column/TestEntity.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/checkconstraint/table/AnotherTestEntity.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/checkconstraint/table/EntityWithSecondaryTables.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/checkconstraint/table/TableCheckConstraintTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/checkconstraint/table/TestEntity.java
A hibernate-core/src/test/resources/org/hibernate/orm/test/schemaupdate/checkconstraint/column/mapping.xml
A hibernate-core/src/test/resources/org/hibernate/orm/test/schemaupdate/checkconstraint/table/mapping.xml
Log Message:
-----------
HHH-18054 Add tests for XML mapping
Compare: https://github.com/hibernate/hibernate-orm/compare/44be57995982...75c45f4...
To unsubscribe from these emails, change your notification settings at https://github.com/hibernate/hibernate-orm/settings/notifications
4 months