Projections类主要用于帮助Criteria接口完成数据的分组查询和统计功能












以上代码相当于select color,count(*),avg(weight),max(weight),min(weight),min(weight) from cat group by color
order by color asc;
Projections类主要用于帮助Criteria接口完成数据的分组查询和统计功能
以上代码相当于select color,count(*),avg(weight),max(weight),min(weight),min(weight) from cat group by color
order by color asc;