Issue with distinct 3.1

2013-11-12 Thread Ramiro Aparicio
I found some strange behaviour trying to use Distinct for the first time. I have the following mapping User is related with User via a mapping table named Contact, the PK is an id as the User can contact the same target several times. I wanted to get all distinct Users contacted by A, so as I

Re: Issue with distinct 3.1

2013-11-12 Thread Aristedes Maniatis
On 13/11/2013 3:59am, Ramiro Aparicio wrote: I am really not sure if current behaviour without distinct is ok, but at least it works for me. Cayenne returns a collection of objects that will never have duplicates. In fact you can choose whether the results return as a Set, List or Map. Ari