22
22
import org .springframework .data .domain .Pageable ;
23
23
import org .springframework .data .domain .Sort ;
24
24
import org .springframework .data .jdbc .core .JdbcAggregateOperations ;
25
+ import org .springframework .data .jdbc .core .convert .JdbcConverter ;
25
26
import org .springframework .data .mapping .PersistentEntity ;
26
27
import org .springframework .data .repository .PagingAndSortingRepository ;
27
28
import org .springframework .data .util .Streamable ;
@@ -41,7 +42,21 @@ public class SimpleJdbcRepository<T, ID> implements PagingAndSortingRepository<T
41
42
private final JdbcAggregateOperations entityOperations ;
42
43
private final PersistentEntity <T , ?> entity ;
43
44
44
- public SimpleJdbcRepository (JdbcAggregateOperations entityOperations ,PersistentEntity <T , ?> entity ) {
45
+ public SimpleJdbcRepository (JdbcAggregateOperations entityOperations , PersistentEntity <T , ?> entity ,
46
+ JdbcConverter converter ) {
47
+
48
+ Assert .notNull (entityOperations , "EntityOperations must not be null." );
49
+ Assert .notNull (entity , "Entity must not be null." );
50
+
51
+ this .entityOperations = entityOperations ;
52
+ this .entity = entity ;
53
+ }
54
+
55
+ /**
56
+ * @deprecated Use {@link #SimpleJdbcRepository(JdbcAggregateOperations, PersistentEntity, JdbcConverter)} instead.
57
+ */
58
+ @ Deprecated
59
+ public SimpleJdbcRepository (JdbcAggregateOperations entityOperations , PersistentEntity <T , ?> entity ) {
45
60
46
61
Assert .notNull (entityOperations , "EntityOperations must not be null." );
47
62
Assert .notNull (entity , "Entity must not be null." );
0 commit comments