added jpa entity generator

master
Niclas Thobaben 2021-09-18 17:37:34 +02:00
parent 7c05509265
commit 23d1374485
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,8 @@ import org.springframework.stereotype.Repository;
@Repository
public interface {{record_type}}Repository extends PagingAndSortingRepository<{{record_type}}, {{pkey_type.name}}> {
Page<List<{{record_type}}>> findAll(Pageable pageable);
{{#indexes}}
Page<List<{{record_type}}>> findAllBy{{namePascalCase}}(@NonNull {{type.name}} {{name}}, Pageable pagination);
{{/indexes}}