Fix #193 Removing namedParameterJdbcTemplate in constructor params

This commit is contained in:
Antoine Rey 2016-10-26 15:07:36 +02:00
parent 24c17e21fa
commit 6603d5d196

View file

@ -47,6 +47,7 @@ import org.springframework.stereotype.Repository;
* @author Sam Brannen
* @author Thomas Risberg
* @author Mark Fisher
* @author Antoine Rey
*/
@Repository
public class JdbcOwnerRepositoryImpl implements OwnerRepository {
@ -56,7 +57,7 @@ public class JdbcOwnerRepositoryImpl implements OwnerRepository {
private SimpleJdbcInsert insertOwner;
@Autowired
public JdbcOwnerRepositoryImpl(DataSource dataSource, NamedParameterJdbcTemplate namedParameterJdbcTemplate) {
public JdbcOwnerRepositoryImpl(DataSource dataSource) {
this.insertOwner = new SimpleJdbcInsert(dataSource)
.withTableName("owners")