Polishing `EntityVersionMappingImpl`

1. remove unused field `BasicAttributeMapping attributeMapping`
2. remove unused constructor parameter `MappingModelCreationProcess creationProcess`
This commit is contained in:
Yanming Zhou 2024-09-05 09:59:55 +08:00 committed by Gavin King
parent 7c30bbed2b
commit b870214ce9
2 changed files with 2 additions and 6 deletions

View File

@ -58,8 +58,6 @@ public class EntityVersionMappingImpl implements EntityVersionMapping, FetchOpti
private final VersionValue unsavedValueStrategy; private final VersionValue unsavedValueStrategy;
private BasicAttributeMapping attributeMapping;
public EntityVersionMappingImpl( public EntityVersionMappingImpl(
RootClass bootEntityDescriptor, RootClass bootEntityDescriptor,
Supplier<?> templateInstanceAccess, Supplier<?> templateInstanceAccess,
@ -72,8 +70,7 @@ public class EntityVersionMappingImpl implements EntityVersionMapping, FetchOpti
Integer scale, Integer scale,
Integer temporalPrecision, Integer temporalPrecision,
BasicType<?> versionBasicType, BasicType<?> versionBasicType,
EntityMappingType declaringType, EntityMappingType declaringType) {
MappingModelCreationProcess creationProcess) {
this.attributeName = attributeName; this.attributeName = attributeName;
this.columnDefinition = columnDefinition; this.columnDefinition = columnDefinition;
this.length = length; this.length = length;

View File

@ -5284,8 +5284,7 @@ public abstract class AbstractEntityPersister
column.getScale(), column.getScale(),
column.getTemporalPrecision(), column.getTemporalPrecision(),
basicTypeResolution.getLegacyResolvedBasicType(), basicTypeResolution.getLegacyResolvedBasicType(),
entityPersister, entityPersister
creationProcess
); );
} }