mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 21:15:50 +00:00
Fix #193 Removing namedParameterJdbcTemplate in constructor params
This commit is contained in:
parent
24c17e21fa
commit
6603d5d196
1 changed files with 2 additions and 1 deletions
|
@ -47,6 +47,7 @@ import org.springframework.stereotype.Repository;
|
||||||
* @author Sam Brannen
|
* @author Sam Brannen
|
||||||
* @author Thomas Risberg
|
* @author Thomas Risberg
|
||||||
* @author Mark Fisher
|
* @author Mark Fisher
|
||||||
|
* @author Antoine Rey
|
||||||
*/
|
*/
|
||||||
@Repository
|
@Repository
|
||||||
public class JdbcOwnerRepositoryImpl implements OwnerRepository {
|
public class JdbcOwnerRepositoryImpl implements OwnerRepository {
|
||||||
|
@ -56,7 +57,7 @@ public class JdbcOwnerRepositoryImpl implements OwnerRepository {
|
||||||
private SimpleJdbcInsert insertOwner;
|
private SimpleJdbcInsert insertOwner;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public JdbcOwnerRepositoryImpl(DataSource dataSource, NamedParameterJdbcTemplate namedParameterJdbcTemplate) {
|
public JdbcOwnerRepositoryImpl(DataSource dataSource) {
|
||||||
|
|
||||||
this.insertOwner = new SimpleJdbcInsert(dataSource)
|
this.insertOwner = new SimpleJdbcInsert(dataSource)
|
||||||
.withTableName("owners")
|
.withTableName("owners")
|
||||||
|
|
Loading…
Reference in a new issue