My query is something like this:
_CriteriaBuilder cb = = getEntityManager().getCriteriaBuilder(); CriteriaQuery<Table1> query = cb.createQuery(Table1.class); Root<Table1> fr = query.from(Table1.class); Fetch<Table1, Table2> ffc = fr.fetch(Table1_.table2s, JoinType.LEFT); ffc.fetch(Table2_.table3s, JoinType.LEFT); query.distinct(true);_
I'll send a test case.
|