Skip to content

Commit f0fa95c

Browse files
dreab8DavideD
authored andcommitted
[#2803] Upgrade Hibernate ORM to 7.2.0.CR3
1 parent 10b0d42 commit f0fa95c

File tree

4 files changed

+8
-16
lines changed

4 files changed

+8
-16
lines changed

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[versions]
22
assertjVersion = "3.27.6"
3-
hibernateOrmVersion = "7.2.0.CR2"
4-
hibernateOrmGradlePluginVersion = "7.2.0.CR2"
3+
hibernateOrmVersion = "7.2.0.CR3"
4+
hibernateOrmGradlePluginVersion = "7.2.0.CR3"
55
jacksonDatabindVersion = "2.20.1"
66
jbossLoggingAnnotationVersion = "3.0.4.Final"
77
jbossLoggingVersion = "3.6.1.Final"

hibernate-reactive-core/src/main/java/org/hibernate/reactive/persister/entity/mutation/ReactiveInsertCoordinatorStandard.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,8 @@ else if ( isValueGenerationInSql( generator, factory().getJdbcServices().getDial
415415
final BasicEntityIdentifierMapping identifierMapping = (BasicEntityIdentifierMapping) entityPersister().getIdentifierMapping();
416416
final String[] columnValues = generator.getReferencedColumnValues( dialect );
417417
tableMapping.getKeyMapping().forEachKeyColumn( (i, column) -> tableInsertBuilder.addKeyColumn(
418-
column.getColumnName(),
419418
columnValues[i],
420-
identifierMapping.getJdbcMapping()
419+
identifierMapping
421420
) );
422421
}
423422
}

hibernate-reactive-core/src/main/java/org/hibernate/reactive/sql/exec/internal/ReactiveJdbcSelectWithActions.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public static class Builder implements JdbcSelectWithActionsBuilder {
132132
protected LockOptions lockOptions;
133133
protected QuerySpec lockingTarget;
134134
protected LockingClauseStrategy lockingClauseStrategy;
135-
boolean isFollonOnLockStrategy;
135+
boolean isFollowOnLockStrategy;
136136

137137
@Override
138138
public Builder setPrimaryAction(JdbcSelect primaryAction) {
@@ -179,8 +179,8 @@ public Builder setLockingClauseStrategy(LockingClauseStrategy lockingClauseStrat
179179
}
180180

181181
@Override
182-
public Builder setIsFollowOnLockStrategy(boolean isFollonOnLockStrategy) {
183-
this.isFollonOnLockStrategy = isFollonOnLockStrategy;
182+
public Builder setIsFollowOnLockStrategy(boolean isFollowOnLockStrategy) {
183+
this.isFollowOnLockStrategy = isFollowOnLockStrategy;
184184
return this;
185185
}
186186

@@ -194,7 +194,7 @@ public JdbcSelect build() {
194194
)
195195
);
196196
}
197-
if ( isFollonOnLockStrategy ) {
197+
if ( isFollowOnLockStrategy ) {
198198
ReactiveFollowOnLockingAction.apply( lockOptions, lockingTarget, lockingClauseStrategy, this );
199199
}
200200

hibernate-reactive-core/src/main/java/org/hibernate/reactive/sql/exec/internal/lock/ReactiveFollowOnLockingAction.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@
88
import org.hibernate.LockMode;
99
import org.hibernate.LockOptions;
1010
import org.hibernate.Locking;
11-
import org.hibernate.engine.spi.CollectionKey;
1211
import org.hibernate.engine.spi.EntityKey;
1312
import org.hibernate.engine.spi.SharedSessionContractImplementor;
1413
import org.hibernate.metamodel.mapping.EntityMappingType;
15-
import org.hibernate.metamodel.mapping.PluralAttributeMapping;
1614
import org.hibernate.metamodel.mapping.TableDetails;
1715
import org.hibernate.reactive.logging.impl.Log;
1816
import org.hibernate.reactive.logging.impl.LoggerFactory;
@@ -32,10 +30,8 @@
3230
import java.lang.invoke.MethodHandles;
3331
import java.sql.Connection;
3432
import java.util.List;
35-
import java.util.Map;
3633
import java.util.concurrent.CompletionStage;
3734

38-
import static java.util.Collections.emptyMap;
3935
import static org.hibernate.reactive.util.impl.CompletionStages.loop;
4036

4137
/**
@@ -98,10 +94,7 @@ public CompletionStage<Void> reactivePerformReactivePostAction(
9894

9995
// collect registrations by entity type
10096
final var entitySegments = segmentLoadedValues();
101-
final Map<EntityMappingType, Map<PluralAttributeMapping, List<CollectionKey>>> collectionSegments =
102-
lockScope == Locking.Scope.INCLUDE_FETCHES
103-
? segmentLoadedCollections()
104-
: emptyMap();
97+
final var collectionSegments = segmentLoadedCollections();
10598

10699
// for each entity-type, prepare a locking select statement per table.
107100
// this is based on the attributes for "state array" ordering purposes -

0 commit comments

Comments
 (0)