HHH-17123 Avoid type cast to SqlExpressible in SqlSelectionImpl
This commit is contained in:
parent
b67bb7403e
commit
6de9818e2d
|
@ -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