|
@@ -5,6 +5,8 @@
|
|
|
|
|
|
|
|
package scot.carricksoftware.grants.repositories.places;
|
|
package scot.carricksoftware.grants.repositories.places;
|
|
|
|
|
|
|
|
|
|
+import org.jetbrains.annotations.NotNull;
|
|
|
|
|
+import org.springframework.data.domain.Sort;
|
|
|
import org.springframework.data.repository.PagingAndSortingRepository;
|
|
import org.springframework.data.repository.PagingAndSortingRepository;
|
|
|
import org.springframework.stereotype.Repository;
|
|
import org.springframework.stereotype.Repository;
|
|
|
import scot.carricksoftware.grants.domains.places.Organisation;
|
|
import scot.carricksoftware.grants.domains.places.Organisation;
|
|
@@ -22,7 +24,7 @@ public interface OrganisationRepository extends PagingAndSortingRepository<Organ
|
|
|
|
|
|
|
|
Optional<Organisation> findById(Long id);
|
|
Optional<Organisation> findById(Long id);
|
|
|
|
|
|
|
|
- Iterable<Organisation> findAll();
|
|
|
|
|
|
|
+ @NotNull Iterable<Organisation> findAll(@NotNull Sort sort);
|
|
|
|
|
|
|
|
Optional<Organisation> findByName(String name);
|
|
Optional<Organisation> findByName(String name);
|
|
|
}
|
|
}
|