From 3f7616367c23da5d94c9de5f50317bcbfa49383a Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Tue, 2 Jun 2015 07:53:50 +0200 Subject: [PATCH] #93 - Switched to RowMapper for Spring 4.2 compatibility. ParameterizedRowMapper has been deprecated for a while and finally removed in Spring 4.2. We now use the simple parameterized RowMapper interface. --- .../springdata/jpa/custom/UserRepositoryImplJdbc.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jpa/example/src/main/java/example/springdata/jpa/custom/UserRepositoryImplJdbc.java b/jpa/example/src/main/java/example/springdata/jpa/custom/UserRepositoryImplJdbc.java index 381f1f31..62c12fe3 100644 --- a/jpa/example/src/main/java/example/springdata/jpa/custom/UserRepositoryImplJdbc.java +++ b/jpa/example/src/main/java/example/springdata/jpa/custom/UserRepositoryImplJdbc.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2014 the original author or authors. + * Copyright 2013-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ import javax.sql.DataSource; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Profile; -import org.springframework.jdbc.core.simple.ParameterizedRowMapper; +import org.springframework.jdbc.core.RowMapper; import org.springframework.jdbc.core.support.JdbcDaoSupport; import org.springframework.stereotype.Component; @@ -67,7 +67,7 @@ class UserRepositoryImplJdbc extends JdbcDaoSupport implements UserRepositoryCus return getJdbcTemplate().query(COMPLICATED_SQL, new UserRowMapper()); } - private static class UserRowMapper implements ParameterizedRowMapper { + private static class UserRowMapper implements RowMapper { /* * (non-Javadoc)