HHH-17123 Avoid type cast to SqlExpressible in SqlSelectionImpl

This commit is contained in:
Sanne Grinovero 2023-08-22 14:28:04 +02:00 committed by Sanne Grinovero
parent 062b8bcd68
commit 959ff5ee4d
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ public class SqlSelectionImpl implements SqlSelection, SqlExpressionAccess {
@Override @Override
public ValueExtractor getJdbcValueExtractor() { public ValueExtractor getJdbcValueExtractor() {
final JdbcMapping jdbcMapping = ( (SqlExpressible) sqlExpression.getExpressionType() ).getJdbcMapping(); final JdbcMapping jdbcMapping = sqlExpression.getExpressionType().getSingleJdbcMapping();
if ( jdbcJavaType == null || jdbcMapping.getMappedJavaType() == jdbcJavaType ) { if ( jdbcJavaType == null || jdbcMapping.getMappedJavaType() == jdbcJavaType ) {
return jdbcMapping.getJdbcValueExtractor(); return jdbcMapping.getJdbcValueExtractor();
} }