if (allowNulls)
{
// Allow for null value of discriminator
ScalarExpression discrExpr = discriminatorMapping.newScalarExpression(stmt, discrimTableExpr);
ScalarExpression discrVal = new NullLiteral(stmt);
stmt.iorCondition(discrExpr.eq(discrVal));
}
}
return stmt;
}