This commit is contained in:
Andrea Boriero 2019-11-09 11:00:39 +00:00
parent dbd1079828
commit e0dd8321f3
2 changed files with 2 additions and 3 deletions

View File

@ -70,7 +70,6 @@ import org.hibernate.sql.ast.tree.expression.QueryLiteral;
import org.hibernate.sql.ast.tree.from.TableGroup;
import org.hibernate.sql.ast.tree.from.TableReference;
import org.hibernate.sql.ast.tree.from.TableReferenceJoin;
import org.hibernate.sql.ast.tree.predicate.CasePredicate;
import org.hibernate.sql.ast.tree.predicate.NullnessPredicate;
import org.hibernate.sql.ast.tree.predicate.Predicate;
import org.hibernate.sql.results.internal.domain.entity.JoinedSubclassResultImpl;
@ -1293,7 +1292,7 @@ public class JoinedSubclassEntityPersister extends AbstractEntityPersister {
TableReference table,
ColumnReference identifierColumnReference,
BasicType resultType) {
final CasePredicate predicate = new NullnessPredicate( identifierColumnReference, true );
final Predicate predicate = new NullnessPredicate( identifierColumnReference, true );
final Expression expression =
new QueryLiteral<>(
discriminatorValuesByTableName.get( table.getTableExpression() ),

View File

@ -39,7 +39,7 @@ public class DecodeCaseExpressionWalker implements CaseExpressionWalker {
whenFragment.getResult().accept( sqlAstWalker );
}
else {
predicate.getLeftHandExpression().accept( sqlAstWalker );
getLeftHandExpression( predicate ).accept( sqlAstWalker );
firstWhenFragment = whenFragment;
}
}