I'm not sure how to categorize this question - it's not a really a problem, but trying to separate implementations.
I'm using Spring Data JPA. I have my repository set up to do pagination.
When I set up my service layer it looks something like this:
It works perfectly. Spring data rocks.Code:public Page<ReturnRow> findWhatever(int iDisplayStart, int iDisplayLength, sortStuff, etc.) {...}
My issue is with me using Page<ReturnRow> as my return value. Page is Spring Data specific. What if I decide to switch to another DAO implementation (highly unlikely, but it's possible)? Is there a more suitable/standard 'non-implementation' specific way to return pageination information or is everyone just creating their own service layer implementation?
Does that make any sense?


Reply With Quote
