mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-09 20:54:46 +00:00
HHH-17123 Avoid type cast to SqlExpressible in SqlSelectionImpl
This commit is contained in:
parent
062b8bcd68
commit
959ff5ee4d
@ -80,7 +80,7 @@ public Expression getExpression() {
|
||||
|
||||
@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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user