max(String propertyName)
引數說明:Criteria criteria = session.createCriteria(ResultForm.class); //獲取Criteria物件 criteria.setProjection(Projections.max("achievement")); //獲取achievement列的最大值 double max = (Double)criteria.uniqueResult(); //獲取查詢結果 System.out.println("最高成績:"+max);