|
@@ -3,6 +3,7 @@ package io.zipcoder.persistenceapp.service;
|
3
|
3
|
import io.zipcoder.persistenceapp.controller.mappers.PersonRowMapper;
|
4
|
4
|
import io.zipcoder.persistenceapp.model.Person;
|
5
|
5
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
6
|
+import org.springframework.context.annotation.Primary;
|
6
|
7
|
import org.springframework.jdbc.core.BeanPropertyRowMapper;
|
7
|
8
|
import org.springframework.jdbc.core.JdbcTemplate;
|
8
|
9
|
import org.springframework.stereotype.Service;
|
|
@@ -11,6 +12,7 @@ import java.sql.JDBCType;
|
11
|
12
|
import java.util.List;
|
12
|
13
|
|
13
|
14
|
@Service
|
|
15
|
+@Primary
|
14
|
16
|
public class JdbcPersonServiceImpl implements PersonService {
|
15
|
17
|
|
16
|
18
|
private final JDBCType[] types = {JDBCType.VARCHAR, JDBCType.VARCHAR, JDBCType.VARCHAR, JDBCType.DATE, JDBCType.SMALLINT };
|