Joined inheritance work - Removed columnExpression field from CaseSearchedExpression

This commit is contained in:
Andrea Boriero 2019-11-09 10:45:42 +00:00
parent 59e4552195
commit fccaca8391
6 changed files with 0 additions and 35 deletions

View File

@ -1260,8 +1260,6 @@ public class JoinedSubclassEntityPersister extends AbstractEntityPersister {
final BasicType discriminatorType = (BasicType) getDiscriminatorType();
final CaseSearchedExpression caseSearchedExpression = new CaseSearchedExpression( discriminatorType );
caseSearchedExpression.setColumnExpression( getDiscriminatorColumnName() );
tableReferenceJoins.forEach(
tableReferenceJoin -> {
final TableReference joinedTableReference = tableReferenceJoin.getJoinedTableReference();

View File

@ -36,11 +36,5 @@ public class ANSICaseExpressionWalker implements CaseExpressionWalker {
}
sqlBuffer.append( " end" );
final String columnExpression = caseSearchedExpression.getColumnExpression();
if ( columnExpression != null ) {
sqlBuffer.append( " as " ).append( columnExpression );
}
}
}

View File

@ -49,11 +49,5 @@ public class DecodeCaseExpressionWalker implements CaseExpressionWalker {
}
sqlBuffer.append( ')' );
final String columnExpression = caseSearchedExpression.getColumnExpression();
if ( columnExpression != null ) {
sqlBuffer.append( " as " ).append( columnExpression );
}
}
}

View File

@ -51,11 +51,5 @@ public class DerbyCaseExpressionWalker implements CaseExpressionWalker {
}
}
sqlBuffer.append( " end" );
final String columnExpression = caseSearchedExpression.getColumnExpression();
if ( columnExpression != null ) {
sqlBuffer.append( " as " ).append( columnExpression );
}
}
}

View File

@ -39,11 +39,5 @@ public class MckoiCaseExpressionWalker implements CaseExpressionWalker {
sqlBuffer.append( "null" );
}
sqlBuffer.append(buf2);
final String columnExpression = caseSearchedExpression.getColumnExpression();
if ( columnExpression != null ) {
sqlBuffer.append( " as " ).append( columnExpression );
}
}
}

View File

@ -31,20 +31,11 @@ public class CaseSearchedExpression implements Expression, DomainResultProducer
private List<WhenFragment> whenFragments = new ArrayList<>();
private Expression otherwise;
private String columnExpression;
public CaseSearchedExpression(MappingModelExpressable type) {
this.type = (BasicType) type;
}
public void setColumnExpression(String columnExpression) {
this.columnExpression = columnExpression;
}
public String getColumnExpression(){
return columnExpression;
}
public List<WhenFragment> getWhenFragments() {
return whenFragments;
}