A ResultListTransformer which collapses a list of results
into a single result when all results are equal, or throws
NonUniqueResultException otherwise.
Here we have an opportunity to perform transformation on the
query result as a whole. This might be useful to convert from
one collection type to another or to remove duplicates from the
result, etc.
Parameters:
resultList - The result list as would otherwise be returned
by the Query without the intervention
of this ResultListTransformer
A ResultListTransformer which collapses a list of results
into a single result when all results are equal, or throws
NonUniqueResultException otherwise.