#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.
This commit is contained in:
Oliver Gierke
2015-06-02 07:53:50 +02:00
parent 0e7707bb5a
commit 3f7616367c

View File

@@ -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<User> {
private static class UserRowMapper implements RowMapper<User> {
/*
* (non-Javadoc)