Skip to content

Commit b870214

Browse files
quaffgavinking
authored andcommitted
Polishing EntityVersionMappingImpl
1. remove unused field `BasicAttributeMapping attributeMapping` 2. remove unused constructor parameter `MappingModelCreationProcess creationProcess`
1 parent 7c30bbe commit b870214

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/EntityVersionMappingImpl.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ public class EntityVersionMappingImpl implements EntityVersionMapping, FetchOpti
5858

5959
private final VersionValue unsavedValueStrategy;
6060

61-
private BasicAttributeMapping attributeMapping;
62-
6361
public EntityVersionMappingImpl(
6462
RootClass bootEntityDescriptor,
6563
Supplier<?> templateInstanceAccess,
@@ -72,8 +70,7 @@ public EntityVersionMappingImpl(
7270
Integer scale,
7371
Integer temporalPrecision,
7472
BasicType<?> versionBasicType,
75-
EntityMappingType declaringType,
76-
MappingModelCreationProcess creationProcess) {
73+
EntityMappingType declaringType) {
7774
this.attributeName = attributeName;
7875
this.columnDefinition = columnDefinition;
7976
this.length = length;

hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5284,8 +5284,7 @@ protected static EntityVersionMapping generateVersionMapping(
52845284
column.getScale(),
52855285
column.getTemporalPrecision(),
52865286
basicTypeResolution.getLegacyResolvedBasicType(),
5287-
entityPersister,
5288-
creationProcess
5287+
entityPersister
52895288
);
52905289
}
52915290

0 commit comments

Comments
 (0)