From e12eb9436da160478ed3ce9590058067e295c1f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Mon, 2 Oct 2023 15:07:09 +0200 Subject: [PATCH] Fix description of default behavior in BeanPropertyRowMapper Closes gh-29285 --- .../springframework/jdbc/core/BeanPropertyRowMapper.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/core/BeanPropertyRowMapper.java b/spring-jdbc/src/main/java/org/springframework/jdbc/core/BeanPropertyRowMapper.java index 34bfd35c782..53a8e2c51b5 100644 --- a/spring-jdbc/src/main/java/org/springframework/jdbc/core/BeanPropertyRowMapper.java +++ b/spring-jdbc/src/main/java/org/springframework/jdbc/core/BeanPropertyRowMapper.java @@ -406,8 +406,11 @@ public class BeanPropertyRowMapper implements RowMapper { /** * Retrieve a JDBC object value for the specified column. - *

The default implementation delegates to - * {@link #getColumnValue(ResultSet, int, Class)}. + *

The default implementation calls + * {@link JdbcUtils#getResultSetValue(java.sql.ResultSet, int, Class)} + * using the type of the specified {@link PropertyDescriptor} + * Subclasses may override this to check specific value types upfront, + * or to post-process values return from {@code getResultSetValue}. * @param rs is the ResultSet holding the data * @param index is the column index * @param pd the bean property that each result object is expected to match