Change to the BeanPropertyRowMapper from the ParameterizedBeanPropertyRowMapper

Issues: SPR-12980
master
Kazuki Shimizu 10 years ago
parent 572cbb0821
commit 9dc64244b5
  1. 4
      src/asciidoc/data-access.adoc

@ -3916,7 +3916,7 @@ rows from the t_actor table. Here is the MySQL source for this procedure:
----
To call this procedure you declare the `RowMapper`. Because the class you want to map to
follows the JavaBean rules, you can use a `ParameterizedBeanPropertyRowMapper` that is
follows the JavaBean rules, you can use a `BeanPropertyRowMapper` that is
created by passing in the required class to map to in the `newInstance` method.
[source,java,indent=0]
@ -3932,7 +3932,7 @@ created by passing in the required class to map to in the `newInstance` method.
this.procReadAllActors = new SimpleJdbcCall(jdbcTemplate)
.withProcedureName("read_all_actors")
.returningResultSet("actors",
ParameterizedBeanPropertyRowMapper.newInstance(Actor.class));
BeanPropertyRowMapper.newInstance(Actor.class));
}
public List getActorsList() {

Loading…
Cancel
Save