about the method page of JPAQuery
Asked by
marc
Hi,
I am wondering how does the method page of JPAQuery works. I would use it the same way I would use LIMIT in mysql but it doesn't seem to work.
Example:
("FROM User WHERE isActive=? ORDER BY id DESC", new Object[] { 1 }).page(1,5);
Here I expect 5 results, it works.
Now I try:
("FROM User WHERE isActive=? ORDER BY id DESC", new Object[] { 1 }).page(5,10);
I expect the next 5 results from 5 but I don't get anything.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- marc
- Solved:
- Last query:
- Last reply:
To post a message you must log in.