我在我的hibernate创建条件查询中对数字字段求和。我需要另一列 - 从输出resultlist域类seriesType
,但现在如果我添加术语property('seriesType')
中的突起随着grouProperty()行我得到一个异常说not a group by clause could not execute query
在grails中使用HibernateCriteriaBuilder从createCriteria中提取所有字段
不知道我怎样才能得到这里与结果 其他两个沿着场是我的标准
dataMap = BehaviorProfile.createCriteria().list {
globalUser{
eq('id',empid2)
}
projections{
sum('frequency', 'tfreq')
groupProperty('dayofweek')
// if I add property('seriesType') here the criteria throws an exception
}
}