hql:select new Test(sum(r.showtimes)) from Test
Test构造: public Test(Integer showtimes)
出现异常:no appropriate constructor in class
请问在hql里面这样操作是不是不支持sum?
在线等
Test构造: public Test(Integer showtimes)
出现异常:no appropriate constructor in class
请问在hql里面这样操作是不是不支持sum?
在线等
如果我不写net,而是直接写r.showtimes就没有任何问题
private int sum;
public Test(int sum){
this.sum=sum;
}