From 62351e0f6e80959c8ff030556643797909c237c9 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Thu, 3 Jul 2014 17:00:25 +0200 Subject: [PATCH] Fix wrong method signature in documentation Issue: SPR-11945 --- src/asciidoc/index.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/asciidoc/index.adoc b/src/asciidoc/index.adoc index 6ec2af052d..b7fd3e85e4 100644 --- a/src/asciidoc/index.adoc +++ b/src/asciidoc/index.adoc @@ -23553,7 +23553,7 @@ parameters. SqlParameterSource namedParameters = new MapSqlParameterSource("first_name", firstName); - return this.namedParameterJdbcTemplate.queryForObject(sql, Integer.class, namedParameters); + return this.namedParameterJdbcTemplate.queryForObject(sql, namedParameters, Integer.class); } ---- @@ -23584,7 +23584,7 @@ The following example shows the use of the `Map`-based style. Map namedParameters = Collections.singletonMap("first_name", firstName); - return this.namedParameterJdbcTemplate.queryForObject(sql, Integer.class, namedParameters); + return this.namedParameterJdbcTemplate.queryForObject(sql, namedParameters, Integer.class); } ---- @@ -23645,7 +23645,7 @@ of named parameter values. SqlParameterSource namedParameters = new BeanPropertySqlParameterSource(exampleActor); - return this.namedParameterJdbcTemplate.queryForObject(sql, Integer.class, namedParameters); + return this.namedParameterJdbcTemplate.queryForObject(sql, namedParameters, Integer.class); } ----