public List<Problem> findKindPage(int page,int size,int kind) {
		log.debug("finding page Problem instances");
		try {						
			String queryString = "from Problem where kind=" + kind;
			Query queryObject = getSession().createQuery(queryString);
			queryObject.setFirstResult(page);
			queryObject.setMaxResults(size);
			List<Problem> list = queryObject.list();
			return list;
		} catch (RuntimeException re) {
			log.error("find all failed", re);
			throw re;
		}
	}