BeanPropertyRowMapper « Bean « Spring Q&A





1. registering converter for property in BeanPropertyRowMapper    stackoverflow.com

I am using org.springframework.jdbc.core.BeanPropertyRowMapper to convert the results of a JDBC statement into a Bean, which works well. I just want to convert one value of the result into another value ...

2. BeanPropertyRowMapper requires public default constructor    forum.springsource.org

BeanPropertyRowMapper requires public default constructor for a class being mapped, otherwise an exception is thrown. This comes from the following line within class declaration: Code: public T mapRow(ResultSet rs, int rowNumber) ...

3. registering converter for property in BeanPropertyRowMapper    forum.springsource.org

I was able to fix it in the meanwhile by overriding the initBeanWrapper of the BeanPropertyRowMapper and registering my PropertyEditor by calling registerCustomEditor for the property I want to convert.

4. BeanPropertyRowMapper splits numbers in property names    forum.springsource.org

Hi! BeanPropertyRowMapper creates a (IMO) bad underscored name if the name contains numbers. Example: x11FooBar si converted to x_1_1_foo_bar IMO it should be x_11_foo_bar Is there a way to override this ...

5. BeanPropertyRowMapper extension    forum.springsource.org

Hello new 2.5 convenient class org.springframework.jdbc.core.BeanPropertyRowMappe r (actually it's super org.springframework.jdbc.core.AbstractBeanProperty RowMapper) lacks support for Y/N(or T/F) boolean mapping (like hibernate's CharBooleanType). All column-bean field mapping logic is concentrated in single ...

6. BeanPropertyRowMapper doesn't populate domain objects    forum.springsource.org

BeanPropertyRowMapper doesn't populate domain objects My sql query populates domain objects. Each domain object in turn consists of some simple fields (ints, longs, etc) and some complex objects (Money object, joda ...

7. Mapping enums with BeanPropertyRowMapper?    forum.springsource.org

Mapping enums with BeanPropertyRowMapper? Hi All, I have a domain object that has an enum member variable. I understand that from a "framework" perspective, writing a converter for an enum could ...