Skip to content

Commit

Permalink
Only add findAllBy for reactive
Browse files Browse the repository at this point in the history
  • Loading branch information
mraible committed Mar 18, 2024
1 parent 7e343f6 commit 0591053
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
package <%= entityAbsolutePackage %>.repository;

import <%= entityAbsolutePackage %>.domain.<%= persistClass %>;
<%_ if (!paginationNo) { _%>
<%_ 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 (!paginationNo) { _%>
<%_ if (reactive && !paginationNo) { _%>
import reactor.core.publisher.Flux;
<%_ } _%>
<%_ if (primaryKey.typeUUID) { _%>
Expand All @@ -37,7 +37,7 @@ import java.util.UUID;
*/
@Repository
public interface <%= entityClass %>Repository extends <% if (reactive) { %>Reactive<% } %>Neo4jRepository<<%= persistClass %>, <%= primaryKey.type %>> {
<%_ if (!paginationNo) { _%>
<%_ if (reactive && !paginationNo) { _%>

Flux<<%= persistClass %>> findAllBy(Pageable pageable);
<%_ } _%>
Expand Down

0 comments on commit 0591053

Please sign in to comment.