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

View File

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