Skip to content

Commit 1e63e31

Browse files
committed
change return value of AggregateReader to List
1 parent 1ddb157 commit 1e63e31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/AggregateReader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public T findById(Object id) {
8686
return jdbcTemplate.query(sqlGenerator.findById(), Map.of("id", id), this::extractZeroOrOne);
8787
}
8888

89-
public Iterable<T> findAllById(Iterable<?> ids) {
89+
public List<T> findAllById(Iterable<?> ids) {
9090

9191
List<Object> convertedIds = new ArrayList<>();
9292
for (Object id : ids) {
@@ -96,7 +96,7 @@ public Iterable<T> findAllById(Iterable<?> ids) {
9696
return jdbcTemplate.query(sqlGenerator.findAllById(), Map.of("ids", convertedIds), this::extractAll);
9797
}
9898

99-
public Iterable<T> findAllBy(Query query) {
99+
public List<T> findAllBy(Query query) {
100100

101101
MapSqlParameterSource parameterSource = new MapSqlParameterSource();
102102
BiFunction<Table, RelationalPersistentEntity, Condition> condition = createConditionSource(query, parameterSource);

0 commit comments

Comments
 (0)