I am developing an stateless API that needs to support pagination.
I use an Oracle database. I use Spring with MyBatis for database access.
From the docume
I found a simple work around to this issue. I had followed the Mybatis instructions @khampson recommended and was passing a RowBounds instance to the mapper with no limits being enforced.
RowBounds rowbounds = new RowBounds(0, resultLimit);
roster = tableMapper.selectAll(rowbounds);
mapper java
public List selectAll(RowBounds rowbounds);
mapper xml
simply appending "LIMIT #{param1.offset}, #{param1.limit}" to the mapper's xml produced the behavior I wanted!