From 6de9818e2de123d9995cc7d1be8a3d8d90c01a9b Mon Sep 17 00:00:00 2001 From: Sanne Grinovero Date: Tue, 22 Aug 2023 14:28:04 +0200 Subject: [PATCH] HHH-17123 Avoid type cast to SqlExpressible in SqlSelectionImpl --- .../org/hibernate/sql/results/internal/SqlSelectionImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/sql/results/internal/SqlSelectionImpl.java b/hibernate-core/src/main/java/org/hibernate/sql/results/internal/SqlSelectionImpl.java index a8ef5ca35d..5721f626ce 100644 --- a/hibernate-core/src/main/java/org/hibernate/sql/results/internal/SqlSelectionImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/sql/results/internal/SqlSelectionImpl.java @@ -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(); }