I\'m trying to get a page of a partial entity (NetworkSimple) using the new feature of spring data, projections
I\'ve checked the documentation and if I request only:
I think you need create findAllProjectedBy()
as specification.Then you can use findAll()
method like this.
example :findAll(findAllProjectedBy(),pageable)
Following link may be help to find how to create specification in spring.
https://spring.io/blog/2011/04/26/advanced-spring-data-jpa-specifications-and-querydsl/