Hi,

I have problems maintaining my collections and maps as
the functions contain/remove /add are not working as I expect.

I would expect that the function equals of my entities are called if
I use  contain/remove /add but they are not called.
After that I thought it will compare the primary key of the entity but that
is also
not the case. 

Are entities in collections only compared by their reference?

That blows up my code to iteterate over collections / maps  and compare the
entities manually to decide if I can remove or add them.

Can anyone explain me how entities are compared in collections?

I am using OpenJPA 2.0 EA2

Thanks,
Oliver


-- 
View this message in context: 
http://n2.nabble.com/How-are-entities-compared-in-collections-maps--tp3169660p3169660.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to