5

CriteriaBuilder.construct を使用して、ラッパー オブジェクトで 2 つの型を返すサブクエリが必要です。

次に、このサブクエリの結果に対して個別の選択カウントを実行したいと考えています。

ただし、CriteriaBuilder.construct は CompountSelection を返し、CriteriaQuery には select(Selection) がありますが、サブクエリには select(Expression) しかありません。

CompoundSelection を Expression に変換できますか?

4

0 に答える 0