I have class A which have collection of B's: List<B> bList. Also, B class have collection of C: List<C> cList
Question: How I can get object with all collections initialized?
This NamedQuery works incorrectly (it returns many duplicates of B):
SELECT a FROM A a
LEFT JOIN FETCH a.bList bList
LEFT JOIN FETCH bList.cList
WHERE a.id = (:id)