mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
15 lines
444 B
Java
15 lines
444 B
Java
// "Replace iteration with bulk 'CrudRepository.save' call" "true"
|
|
package org.springframework.data.repository;
|
|
|
|
import java.io.Serializable;
|
|
|
|
interface CrudRepository<T,ID extends Serializable> {
|
|
<S extends T> Iterable<S> save(Iterable<S> entities);
|
|
<S extends T> S save(S entity);
|
|
}
|
|
|
|
public class Main {
|
|
public void test(CrudRepository<CharSequence, Integer> repo, Iterable<String> stringsToSave) {
|
|
repo.save(stringsToSave);
|
|
}
|
|
} |