HHH-15793 Mitigate type pollution on ColumnReference#getExpressionType

This commit is contained in:
Sanne Grinovero 2022-11-06 16:59:25 +00:00 committed by Sanne Grinovero
parent ed26c3f8fa
commit 4b2f8ff8ae
1 changed files with 2 additions and 3 deletions

View File

@ -15,7 +15,6 @@ import java.util.function.Consumer;
import org.hibernate.internal.util.StringHelper;
import org.hibernate.metamodel.mapping.SelectableMapping;
import org.hibernate.metamodel.mapping.JdbcMapping;
import org.hibernate.metamodel.mapping.MappingModelExpressible;
import org.hibernate.sql.Template;
import org.hibernate.sql.ast.SqlAstWalker;
import org.hibernate.sql.ast.spi.SqlAppender;
@ -197,8 +196,8 @@ public class ColumnReference implements Expression, Assignable {
}
@Override
public MappingModelExpressible getExpressionType() {
return (MappingModelExpressible) jdbcMapping;
public JdbcMapping getExpressionType() {
return jdbcMapping;
}
@Override