HHH-17123 Avoid type cast to SqlExpressible in SqlSelectionImpl
This commit is contained in:
parent
062b8bcd68
commit
959ff5ee4d
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue