Hello,

I have seen the PersistentGenericBag.EqualsSnapshot method implementation 
is quite different from the other collections, and there is neither any 
comment nor some change in history (and in PersistentBag history) for 
explaining that.

The point is, all other collections (including idbag) EqualsSnapshot 
methods do check each element current value dirtiness against the snapshot 
element value, while PersistentGenericBag only check they are "same" (which 
does a ReferenceEquals for entity types). Granted, it needs that check for 
checking their duplication count is same (bag semantics). But shouldn't it 
check dirtiness too, as all other collections do?

I find such discrepancy suspect, especially since nothing seems to explain 
it. But this discrepancy is there since "all times", it was there even in 
the non generic collections (from their creation to their deletion in 
sources).

On Hibernate side, they have the same discrepancy.

Does anyone knows a good reason for this? Should we remove this discrepancy?

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"nhibernate-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to