package com.github.aureliano.verbum_domini.dao;

import java.io.Serializable;
import java.util.List;

import com.github.aureliano.verbum_domini.web.ServiceParams;

public interface IDao<T> {

	public abstract List<Pagination<T>> list();
	
	public abstract List<Pagination<T>> list(T filter);
	
	public abstract List<Pagination<T>> list(T filter, ServiceParams params);
	
	public abstract T load(Serializable id);
}
@@ -74,31 +74,8 @@
 ble;
-%0Aimport java.util.List;
 %0A%0Aim
@@ -162,32 +162,82 @@
 o%3CT%3E %7B%0A%0A%09public 
+static final Integer PAGE_ELEMENTS = 50;%0A%0A%09public 
 abstract List%3CPa
@@ -221,37 +221,32 @@
 public abstract 
-List%3C
 Pagination%3CT%3E%3E l
@@ -238,25 +238,24 @@
 agination%3CT%3E
-%3E
  list();%0A%09%0A%09
@@ -262,37 +262,32 @@
 public abstract 
-List%3C
 Pagination%3CT%3E%3E l
@@ -275,33 +275,32 @@
 ct Pagination%3CT%3E
-%3E
  list(T filter);
@@ -323,13 +323,8 @@
 act 
-List%3C
 Pagi
@@ -332,17 +332,16 @@
 ation%3CT%3E
-%3E
  list(T 

Use pagination object as return type for collection returning methods.