Using the criteria api, I have a query which does something like:
CriteriaBuilder cb = getCriteriaBuilder(); CriteriaQuery