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 b67bb7403e
commit 6de9818e2d
1 changed files with 1 additions and 1 deletions

View File

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