Polishing.

Related ticket GH-3066.
This commit is contained in:
Oliver Drotbohm
2024-03-25 15:34:44 +01:00
parent ec78e1b8a1
commit 6f68df292c

View File

@@ -86,6 +86,11 @@ public interface RepositoryInformation extends RepositoryMetadata {
return getQueryMethods().stream().anyMatch(this::isCustomMethod);
}
/**
* Returns whether the configured repository interface has query methods at all.
*
* @return
*/
default boolean hasQueryMethods() {
return getQueryMethods().iterator().hasNext();
}