Can we consider changing the criteria API in 3.3 so that DISTINCT_ROOT_ENTITY is the default transformer?
I remember that detecting "fetch" in HQL and applying this transformer is already on the list, right?
or introduce config options for both APIs, so users can switch the default transformer
also, verify this please: http://www.hibernate.org/117.html#A12
we should try to detect if any fetches are present
otherwise DISTINCT_ROOT_ENTITY presents unecessary overhead
i dont recall such a discussion regarding that feature in HQL
another option is sorta like i'm planning in other areas: fallback to subselect fetching