#1262 - ENH: Support firstRow maxRows with findNative()

This commit is contained in:
Rob Bygrave committed 2018-02-16 00:11:27 +13:00
1 parent 6c1b295d41
commit 9926cad7f1
3 files changed
+56 -26

No files matched your search

@@ -996,7 +996,7 @@ public class DefaultOrmQuery<T> implements SpiQuery<T> {
CQueryPlanKey createQueryPlanKey() {
if (isNativeSql()) {
queryPlanKey = new NativeSqlQueryPlanKey(nativeSql);
queryPlanKey = new NativeSqlQueryPlanKey(nativeSql + "-" + firstRow + "-" + maxRows);
} else {
queryPlanKey = new OrmQueryPlanKey(beanDescriptor.getDiscValue(), m2mIncludeJoin, type, detail, maxRows, firstRow,
disableLazyLoading, orderBy,