数値フィールドの合計の hibernate create criteria クエリで group by 句を実行しています。別の列が必要です-seriesType
出力結果リストのドメインクラスからですが、今property('seriesType')
、grouProperty()行とともにプロジェクションに用語を追加すると、例外が発生しますnot a group by clause could not execute query
わからない ここで結果の他の2つと一緒にそのフィールドを取得するにはどうすればよいですか? これが私の基準です
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
}
}