I\'ve a class Lawsuit, that contains a List, each one with a Date attribute.
Lawsuit
List
Date
I need to select all the Law
Law
You can also de-duplicate via group by based on primary key column of root table:
cq.groupBy(root.get("id")); // Assuming that Lawsuite.id is primary key column