-
Jul 21st, 2012, 05:33 PM
#1
Server-Side-Pagination and One-to-Many Relationship
Hi,
I have 2 Classes (Class A & Class B) both Classes are mapped using jpa enity relationship. Class A has a "one-to-many" relationship with Class B (class A holds a list of class b objects). I would like to paginate the list within Class A so that only certain number of Class B objects is retrived from database. The pagination will ideally be server-side - had a look at "PagingAndSortingRepository" interface from Spring Data Pbkect Module. I am not sure if it would be possible to paginate the collection within Class A without having to paginate the entire Class A? Anyone have any suggestions?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules