[hibernate/hibernate-orm] 4b7fcb: HHH-15681 use enum instead of boolean of lock scopes
by Gavin King
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 4b7fcb5123de610d7ac23465e19674c11daddfb4
https://github.com/hibernate/hibernate-orm/commit/4b7fcb5123de610d7ac2346...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2022-11-08 (Tue, 08 Nov 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/LockMode.java
M hibernate-core/src/main/java/org/hibernate/LockOptions.java
M hibernate-core/src/main/java/org/hibernate/Session.java
M hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/lock/OptimisticForceIncrementLockingStrategy.java
M hibernate-core/src/main/java/org/hibernate/dialect/lock/OptimisticLockingStrategy.java
M hibernate-core/src/main/java/org/hibernate/dialect/lock/PessimisticForceIncrementLockingStrategy.java
M hibernate-core/src/main/java/org/hibernate/dialect/lock/PessimisticReadSelectLockingStrategy.java
M hibernate-core/src/main/java/org/hibernate/dialect/lock/PessimisticReadUpdateLockingStrategy.java
M hibernate-core/src/main/java/org/hibernate/dialect/lock/PessimisticWriteSelectLockingStrategy.java
M hibernate-core/src/main/java/org/hibernate/dialect/lock/PessimisticWriteUpdateLockingStrategy.java
M hibernate-core/src/main/java/org/hibernate/dialect/lock/SelectLockingStrategy.java
M hibernate-core/src/main/java/org/hibernate/dialect/lock/UpdateLockingStrategy.java
Log Message:
-----------
HHH-15681 use enum instead of boolean of lock scopes
also a bunch of Javadoc improvement for LockOptions and friends
Commit: 61294250b3e1cd531ee5ebf2fb0618ebb8ec5821
https://github.com/hibernate/hibernate-orm/commit/61294250b3e1cd531ee5ebf...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2022-11-08 (Tue, 08 Nov 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/LockOptions.java
M hibernate-core/src/main/java/org/hibernate/Session.java
M hibernate-core/src/main/java/org/hibernate/engine/spi/SessionDelegatorBaseImpl.java
M hibernate-core/src/main/java/org/hibernate/engine/spi/SessionLazyDelegator.java
M hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java
Log Message:
-----------
HHH-15680 deprecate LockRequest and add overloads of lock() which accept LockOptions
Commit: 58ba65f529003c5f83e8dddbd915f3e45ac0bffd
https://github.com/hibernate/hibernate-orm/commit/58ba65f529003c5f83e8ddd...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2022-11-08 (Tue, 08 Nov 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/LockOptions.java
M hibernate-core/src/main/java/org/hibernate/query/spi/QueryOptionsAdapter.java
M hibernate-core/src/main/java/org/hibernate/sql/exec/internal/JdbcSelectExecutorStandardImpl.java
Log Message:
-----------
HHH-15682 add ImmutableLockOptions
here we had an amazing idiom: static final instances of a mutable value class
Commit: 02ad34091c477a90271928a96d5b772debe2e4f4
https://github.com/hibernate/hibernate-orm/commit/02ad34091c477a90271928a...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2022-11-08 (Tue, 08 Nov 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/LockOptions.java
M hibernate-core/src/main/java/org/hibernate/procedure/internal/ProcedureCallImpl.java
M hibernate-core/src/main/java/org/hibernate/query/NativeQuery.java
M hibernate-core/src/main/java/org/hibernate/query/Query.java
M hibernate-core/src/main/java/org/hibernate/query/SelectionQuery.java
M hibernate-core/src/main/java/org/hibernate/query/spi/AbstractQuery.java
M hibernate-core/src/main/java/org/hibernate/query/spi/AbstractSelectionQuery.java
M hibernate-core/src/main/java/org/hibernate/query/sql/internal/NativeQueryImpl.java
M hibernate-core/src/main/java/org/hibernate/query/sql/spi/NativeQueryImplementor.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/internal/SqmSelectionQueryImpl.java
M hibernate-core/src/test/java/org/hibernate/orm/test/jpa/lock/QueryLockingTest.java
Log Message:
-----------
HHH-15683+HHH-15684 clean up the handling of LockOptions for queries
This contains a change to LockOptions.overlay() which is breaking
in principle, but more natural and less fragile.
It also deprecates SelectionQuery.setAliasSpecificLockMode() which
I believe was added in 6.0 by mistake. The method is an overload of
setLockMode() in the rest of the hierarchy.
Commit: 9d141a27936a1ac2aab66e72d4cdd2c1fb5f440f
https://github.com/hibernate/hibernate-orm/commit/9d141a27936a1ac2aab66e7...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2022-11-08 (Tue, 08 Nov 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/LockMode.java
M hibernate-core/src/main/java/org/hibernate/LockOptions.java
M hibernate-core/src/main/java/org/hibernate/Session.java
M hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQLDialect.java
M hibernate-core/src/main/java/org/hibernate/event/spi/RefreshEvent.java
M hibernate-core/src/main/java/org/hibernate/sql/SimpleSelect.java
Log Message:
-----------
improve javadoc for LockModes, and deprecate LockOptions.SKIP_LOCKED
Use LockMode.UPGRADE_SKIPLOCKED instead of setting the timeout to -2.
Compare: https://github.com/hibernate/hibernate-orm/compare/a5fa3739e22a...9d141a2...
2 years, 1 month
[hibernate/hibernate-orm] 1a9a3c: HHH-15581 Extend the scope of several methods
by DavideD
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 1a9a3c1c4b77587a8765aa076ecb36a94676cc68
https://github.com/hibernate/hibernate-orm/commit/1a9a3c1c4b77587a8765aa0...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2022-11-07 (Mon, 07 Nov 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/action/internal/EntityUpdateAction.java
M hibernate-core/src/main/java/org/hibernate/event/internal/AbstractVisitor.java
M hibernate-core/src/main/java/org/hibernate/event/internal/DefaultMergeEventListener.java
M hibernate-core/src/main/java/org/hibernate/event/internal/EventUtil.java
M hibernate-core/src/main/java/org/hibernate/event/internal/WrapVisitor.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java
M hibernate-core/src/main/java/org/hibernate/sql/exec/internal/JdbcSelectExecutorStandardImpl.java
Log Message:
-----------
HHH-15581 Extend the scope of several methods
This way Hibernate Reactive can access or override them.
Commit: 75765905cc7de7d15c78985f59c9d7939ddac1df
https://github.com/hibernate/hibernate-orm/commit/75765905cc7de7d15c78985...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2022-11-07 (Mon, 07 Nov 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/loader/ast/internal/SingleIdLoadPlan.java
M hibernate-core/src/main/java/org/hibernate/sql/results/jdbc/internal/DeferredResultSetAccess.java
Log Message:
-----------
HHH-15581 Add getters so that Hibernate Reactive can access the fields
Commit: 76ba3151940d8c5a9df78a0723528213e6ef31bb
https://github.com/hibernate/hibernate-orm/commit/76ba3151940d8c5a9df78a0...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2022-11-07 (Mon, 07 Nov 2022)
Changed paths:
A hibernate-core/src/main/java/org/hibernate/action/internal/ComparableEntityAction.java
Log Message:
-----------
HHH-15581 Add ComparableEntityAction interface
Commit: 954eb793aaa35df19395b3a22d6cdad187a135c5
https://github.com/hibernate/hibernate-orm/commit/954eb793aaa35df19395b3a...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2022-11-07 (Mon, 07 Nov 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/action/internal/EntityAction.java
Log Message:
-----------
HHH-15581 Make EntityAction extends ComparableEntityAction
Commit: 2f45da6e350fa60fed6febea3be672ebc471c89d
https://github.com/hibernate/hibernate-orm/commit/2f45da6e350fa60fed6febe...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2022-11-07 (Mon, 07 Nov 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/sql/results/internal/ResultsHelper.java
Log Message:
-----------
HHH-15581 Extract ResultHelper#createRowReader
This way Hibernate Reactive can call it and avoid
duplicated code.
Commit: af5ebb2a7f734d2353a4ac0e1a34d38380d46cd1
https://github.com/hibernate/hibernate-orm/commit/af5ebb2a7f734d2353a4ac0...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2022-11-07 (Mon, 07 Nov 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/sql/results/jdbc/internal/DeferredResultSetAccess.java
Log Message:
-----------
HHH-15581 Extract skipRow and bindParameters from DeferredResultSetAccess
So that Hibernate Reactive can call them.
Compare: https://github.com/hibernate/hibernate-orm/compare/3897f6113652...af5ebb2...
2 years, 1 month
[hibernate/hibernate-orm] 4aede4: HHH-15670 Implement RequiresDialectFeature.reverse()
by Philippe Marschall
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 4aede4ca88290a0dbbc7b3722111899ef2da0d22
https://github.com/hibernate/hibernate-orm/commit/4aede4ca88290a0dbbc7b37...
Author: Philippe Marschall <philippe.marschall(a)gmail.com>
Date: 2022-11-07 (Mon, 07 Nov 2022)
Changed paths:
M hibernate-core/src/test/java/org/hibernate/orm/test/jpa/lock/JPALockTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/jpa/lock/RepeatableReadTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/optlock/OptimisticLockTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/nullPrecedence/SupportingNotNativelyDialectTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/tm/CMTTest.java
M hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
M hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFilterExtension.java
Log Message:
-----------
HHH-15670 Implement RequiresDialectFeature.reverse()
- implement RequiresDialectFeature.reverse()
- remove not-feature checks to reverse = true
2 years, 1 month
[hibernate/hibernate-orm] 0b733d: HHH-15641 Enable inlineDirtyChecking and lazyLoadi...
by Christian Beikov
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 0b733d4ba2e98f719cfa65f8bbc4ce1fa58bb42d
https://github.com/hibernate/hibernate-orm/commit/0b733d4ba2e98f719cfa65f...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2022-11-07 (Mon, 07 Nov 2022)
Changed paths:
M documentation/src/main/asciidoc/userguide/appendices/Configurations.adoc
M documentation/src/main/asciidoc/userguide/chapters/tooling/enhancement.adoc
M documentation/src/main/asciidoc/userguide/chapters/tooling/gradle.adoc
M hibernate-core/src/main/java/org/hibernate/bytecode/enhance/spi/EnhancementContext.java
M hibernate-core/src/main/java/org/hibernate/cfg/AvailableSettings.java
M hibernate-core/src/main/java/org/hibernate/internal/log/DeprecationLogger.java
M hibernate-core/src/main/java/org/hibernate/jpa/boot/internal/EntityManagerFactoryBuilderImpl.java
M hibernate-testing/src/main/java/org/hibernate/testing/util/jpa/PersistenceUnitInfoAdapter.java
M migration-guide.adoc
M tooling/hibernate-ant/src/main/java/org/hibernate/tool/enhance/EnhancementTask.java
M tooling/hibernate-enhance-maven-plugin/src/main/java/org/hibernate/orm/tooling/maven/MavenEnhancePlugin.java
M tooling/hibernate-enhance-maven-plugin/src/main/resources/META-INF/maven/org.hibernate.orm.tooling/hibernate-enhance-maven-plugin/plugin-help.xml
M tooling/hibernate-enhance-maven-plugin/src/main/resources/META-INF/maven/plugin.xml
M tooling/hibernate-gradle-plugin/src/main/java/org/hibernate/orm/tooling/gradle/enhance/EnhancementHelper.java
M tooling/hibernate-gradle-plugin/src/main/java/org/hibernate/orm/tooling/gradle/enhance/EnhancementSpec.java
Log Message:
-----------
HHH-15641 Enable inlineDirtyChecking and lazyLoading for enhancement by default and deprecate the setting
2 years, 1 month