Code Clean up
This commit is contained in:
parent
c4887356ca
commit
cb5fe2645a
|
@ -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 {
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue