Dan,

You can compare natural ids when you have one or more transient entities.

Thanks,
Jason

On Fri, Aug 13, 2010 at 3:54 AM, Dan B <[email protected]> wrote:

> And then how do you test for equality of transient entities?
>
> On Aug 13, 2:05 am, Diego Mijelshon <[email protected]> wrote:
> > Equality in a domain model should be based in the Id only. The timestamp
> > changes on flush, but you are still referring to the same object.
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to