public List<User> findByExample(User exampleUser, String orderByProperty, boolean orderDescending,
int firstResult, int maxResults, String... ignoreProperty) {
Criteria crit = prepareExampleCriteria(exampleUser, orderByProperty, orderDescending, ignoreProperty);
crit.setFirstResult(firstResult).setMaxResults(maxResults);
return (List<User>)crit.list();
}
public int getRowCountByExample(User exampleUser, String... ignoreProperty) {
Criteria crit = prepareExampleCriteria(exampleUser, null, false, ignoreProperty);