Skip to content

Instantly share code, notes, and snippets.

View jeffgbutler's full-sized avatar

Jeff Butler jeffgbutler

  • Carmel, Indiana
View GitHub Profile
@jeffgbutler
jeffgbutler / Mapper.java
Last active December 30, 2021 13:18
MyBatis Dynamic SQL Limit and Offset
@Select({
"${selectStatement}",
"LIMIT #{parameters.limit} OFFSET #{parameters.offset}"
})
@ResultMap("TLecturesResult")
List<TLectures> selectByExampleWithLimitAndOffset(SelectStatementProvider selectStatement);
package org.apache.ibatis.submitted.automapping;
import java.util.Properties;
import org.apache.ibatis.executor.Executor;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.plugin.Interceptor;
import org.apache.ibatis.plugin.Intercepts;
import org.apache.ibatis.plugin.Invocation;
import org.apache.ibatis.plugin.Plugin;