package com.github.dumars.mybatis.pagination.entity;

public class Paginator {
	
	private int pageNo;
	private int pageSize;
	private int totalRows;
	private Object items;
	
	public Paginator(Object items) {
		this.items = items;
		
		Page page = PageContext.get();
		this.pageNo = page.getPageNo();
		this.pageSize = page.getPageSize();
		this.totalRows = page.getTotalRows();
	}
	
	public int getPageNo() {
		return pageNo;
	}
	public int getPageSize() {
		return pageSize;
	}
	public int getTotalRows() {
		return totalRows;
	}
	public Object getItems() {
		return items;
	}
	public void setItems(Object items) {
		this.items = items;
	}
}

@@ -376,16 +376,200 @@
 );%0A%09%7D%0A%09%0A
+%09public Paginator(Object items, int pageNo, int pageSize, int totalRows) %7B%0A%09%09this.items = items;%0A%09%09this.pageNo = pageNo;%0A%09%09this.pageSize = pageSize;%0A%09%09this.totalRows = totalRows;%0A%09%7D%0A%09%0A
 %09public 

Add a new constructor for Paginator