package com.github.aureliano.edocs.common.persistence;

public class DataPagination<T> {

	private T entity;
	private Integer offset;
	private Integer limit;
	
	public DataPagination() {}

	public T getEntity() {
		return entity;
	}

	public DataPagination<T> withEntity(T entity) {
		this.entity = entity;
		return this;
	}

	public Integer getOffset() {
		return offset;
	}

	public void setOffset(Integer offset) {
		this.offset = offset;
	}

	public Integer getLimit() {
		return limit;
	}

	public void setLimit(Integer limit) {
		this.limit = limit;
	}
}
@@ -378,24 +378,38 @@
 %09public 
-void set
+DataPagination%3CT%3E with
 Offset(I
@@ -441,32 +441,47 @@
 ffset = offset;%0A
+%09%09return this;%0A
 %09%7D%0A%0A%09public Inte
@@ -529,16 +529,30 @@
 lic 
-void set
+DataPagination%3CT%3E with
 Limi
@@ -592,12 +592,27 @@
  limit;%0A
+%09%09return this;%0A
 %09%7D%0A%7D

Change setters behaviour.