diff --git a/hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/RowIdJdbcType.java b/hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/RowIdJdbcType.java index b11f3a6167..a8e9e029f6 100644 --- a/hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/RowIdJdbcType.java +++ b/hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/RowIdJdbcType.java @@ -55,7 +55,6 @@ public class RowIdJdbcType implements JdbcType { } @Override - @SuppressWarnings("unchecked") public ValueExtractor getExtractor(JavaType javaType) { return new BasicExtractor<>( javaType, this ) { @Override @@ -70,7 +69,7 @@ public class RowIdJdbcType implements JdbcType { @Override protected X doExtract(CallableStatement statement, String name, WrapperOptions options) throws SQLException { - return getJavaType().wrap( statement.getObject( name ), options ); + return getJavaType().wrap( statement.getRowId( name ), options ); } }; }