PermissionRepository:
Код: Выделить всё
public interface PermissionRepository extends CrudRepository
,
SearchRepository {
}
Код: Выделить всё
Iterable findAll();Код: Выделить всё
List
list = permissionRepository.findAll()
.stream()
.map(PermissionDTO::new)
.collect(Collectors.toList());
Подробнее здесь: https://stackoverflow.com/questions/697 ... to-its-dto
Мобильная версия