Announcement Announcement Module
Collapse
No announcement yet.
Server-Side-Pagination and One-to-Many Relationship Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

  • #2
    Maybe this can help you: http://stackoverflow.com/questions/1...ery-with-joins
    I had the same problem, but I'm using Spring Batch.

    Comment

    Working...
    X