Skip to content

Commit

Permalink
Code Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
dreab8 committed Feb 17, 2020
1 parent c488735 commit cb5fe26
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Expand Up @@ -450,9 +450,7 @@ public boolean isSimpleValue() {
}

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 {
Expand Down
Expand Up @@ -178,11 +178,6 @@ else if ( subtype instanceof CompositeType ) {
);
}
else if ( subtype instanceof EntityType ) {
final Dialect dialect = creationProcess.getCreationContext()
.getSessionFactory()
.getJdbcServices()
.getDialect();

final SingularAssociationAttributeMapping singularAssociationAttributeMapping = MappingModelCreationHelper.buildSingularAssociationAttributeMapping(
bootPropertyDescriptor.getName(),
attributeIndex,
Expand Down

0 comments on commit cb5fe26

Please sign in to comment.