I have two resources defined using a PagingAndSortingRepository:
- galleries/{id}
- images/{id}
Paging in general for both resources is available by the used repository type.
The gallery itself contains a list of images
@Entity
@Table(name = "Gallery")
public class Gallery extends AbstractEntity {
private String name;
@OneToMany(fetch = FetchType.EAGER)
private List<Image> images;
...
}
I can now access the images of a gallery via
- galleries/1/images
Is it possible to enable paging also for these sub-lists? or what is the REST style for handling those large lists.
thank you in advance, Guido