From 6603d5d19692296710c4160a2d6479100752acae Mon Sep 17 00:00:00 2001 From: Antoine Rey Date: Wed, 26 Oct 2016 15:07:36 +0200 Subject: [PATCH] Fix #193 Removing namedParameterJdbcTemplate in constructor params --- .../petclinic/repository/jdbc/JdbcOwnerRepositoryImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/springframework/samples/petclinic/repository/jdbc/JdbcOwnerRepositoryImpl.java b/src/main/java/org/springframework/samples/petclinic/repository/jdbc/JdbcOwnerRepositoryImpl.java index 45de1aee0..f59e5064b 100644 --- a/src/main/java/org/springframework/samples/petclinic/repository/jdbc/JdbcOwnerRepositoryImpl.java +++ b/src/main/java/org/springframework/samples/petclinic/repository/jdbc/JdbcOwnerRepositoryImpl.java @@ -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")