between(String propertyName,Object lo,Object hi)
Criteria criteria = session.createCriteria(UserForm.class); //定義Criteria物件 criteria.add(Restrictions.between("age",20,40)); //查詢年齡在20~40之間的使用者資訊 list = criteria.list();