added jpa entity generator

master
Niclas Thobaben 2021-09-18 17:35:40 +02:00
parent d780ed3551
commit 7c05509265
1 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ import java.util.List;
import {{{.}}};
{{/imports}}
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;
@ -26,7 +27,7 @@ import org.springframework.stereotype.Repository;
public interface {{record_type}}Repository extends PagingAndSortingRepository<{{record_type}}, {{pkey_type.name}}> {
{{#indexes}}
List<{{record_type}}> findAllBy{{namePascalCase}}(@NonNull {{type.name}} {{name}}, Pageable pagination);
Page<List<{{record_type}}>> findAllBy{{namePascalCase}}(@NonNull {{type.name}} {{name}}, Pageable pagination);
{{/indexes}}
}