spring-framework / org.springframework.jdbc.core / BeanPropertyRowMapper / <init>

<init>

BeanPropertyRowMapper()

Create a new BeanPropertyRowMapper for bean-style configuration.

See Also
#setMappedClass#setCheckFullyPopulated

BeanPropertyRowMapper(mappedClass: Class<T>)

Create a new BeanPropertyRowMapper, accepting unpopulated properties in the target bean.

Consider using the #newInstance factory method instead, which allows for specifying the mapped type once only.

Parameters

mappedClass - the class that each row should be mapped to

BeanPropertyRowMapper(mappedClass: Class<T>, checkFullyPopulated: Boolean)

Create a new BeanPropertyRowMapper.

Parameters

mappedClass - the class that each row should be mapped to

checkFullyPopulated - whether we're strictly validating that all bean properties have been mapped from corresponding database fields