Code Clean up

This commit is contained in:
Andrea Boriero 2020-01-14 12:49:31 +00:00
parent c4887356ca
commit cb5fe2645a
2 changed files with 1 additions and 8 deletions

View File

@ -450,9 +450,7 @@ public abstract class SimpleValue implements KeyValue {
}
public boolean isValid(Mapping mapping) throws MappingException {
int columnSpan = getColumnSpan();
int typeColumnSpan = getType().getColumnSpan( mapping );
return columnSpan == typeColumnSpan;
return getColumnSpan() == getType().getColumnSpan( mapping );
}
// public Type getType() throws MappingException {

View File

@ -178,11 +178,6 @@ public class EmbeddableMappingType implements ManagedMappingType {
);
}
else if ( subtype instanceof EntityType ) {
final Dialect dialect = creationProcess.getCreationContext()
.getSessionFactory()
.getJdbcServices()
.getDialect();
final SingularAssociationAttributeMapping singularAssociationAttributeMapping = MappingModelCreationHelper.buildSingularAssociationAttributeMapping(
bootPropertyDescriptor.getName(),
attributeIndex,