return new LazyPageList<User>(findUsersByQuery(q), 20);
}
public ListAccess<User> findUsersByQuery(Query q) throws Exception
{
ObjectQuery oq = new ObjectQuery(UserImpl.class);
oq.addLIKE("userName", q.getUserName());
oq.addLIKE("firstName", q.getFirstName());
oq.addLIKE("lastName", q.getLastName());
oq.addLIKE("email", q.getEmail());
oq.addGT("lastLoginTime", q.getFromLoginDate());
oq.addLT("lastLoginTime", q.getToLoginDate());
return new SimpleHibernateUserListAccess(service_, oq.getHibernateQuery(), oq.getHibernateCountQuery());
}