added jpa entity generator
parent
d780ed3551
commit
7c05509265
|
@ -18,6 +18,7 @@ import java.util.List;
|
||||||
import {{{.}}};
|
import {{{.}}};
|
||||||
{{/imports}}
|
{{/imports}}
|
||||||
|
|
||||||
|
import org.springframework.data.domain.Page;
|
||||||
import org.springframework.data.domain.Pageable;
|
import org.springframework.data.domain.Pageable;
|
||||||
import org.springframework.data.repository.PagingAndSortingRepository;
|
import org.springframework.data.repository.PagingAndSortingRepository;
|
||||||
import org.springframework.stereotype.Repository;
|
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}}> {
|
public interface {{record_type}}Repository extends PagingAndSortingRepository<{{record_type}}, {{pkey_type.name}}> {
|
||||||
|
|
||||||
{{#indexes}}
|
{{#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}}
|
{{/indexes}}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue