diff --git a/generators/spring-data-neo4j/templates/src/main/java/_package_/_entityPackage_/repository/_entityClass_Repository.java.ejs b/generators/spring-data-neo4j/templates/src/main/java/_package_/_entityPackage_/repository/_entityClass_Repository.java.ejs index f617aad513f0..3a403691834d 100644 --- a/generators/spring-data-neo4j/templates/src/main/java/_package_/_entityPackage_/repository/_entityClass_Repository.java.ejs +++ b/generators/spring-data-neo4j/templates/src/main/java/_package_/_entityPackage_/repository/_entityClass_Repository.java.ejs @@ -19,9 +19,14 @@ package <%= entityAbsolutePackage %>.repository; import <%= entityAbsolutePackage %>.domain.<%= persistClass %>; - +<%_ if (reactive && !paginationNo) { _%> +import org.springframework.data.domain.Pageable; +<%_ } _%> import org.springframework.data.neo4j.repository.<% if (reactive) { %>Reactive<% } %>Neo4jRepository; import org.springframework.stereotype.Repository; +<%_ if (reactive && !paginationNo) { _%> +import reactor.core.publisher.Flux; +<%_ } _%> <%_ if (primaryKey.typeUUID) { _%> import java.util.UUID; @@ -32,4 +37,8 @@ import java.util.UUID; */ @Repository public interface <%= entityClass %>Repository extends <% if (reactive) { %>Reactive<% } %>Neo4jRepository<<%= persistClass %>, <%= primaryKey.type %>> { +<%_ if (reactive && !paginationNo) { _%> + + Flux<<%= persistClass %>> findAllBy(Pageable pageable); +<%_ } _%> }