carlos f wrote:
> Why not rely on Hibernate's version support for detached objects and
> versioning?
[...]
> Why clone the detached object graph?  Why not have the DAO reattach
> it to
> the session and save it -- assuming it passes your version check?

I don't mean to speak for Norman, but the point of this thread has been that
detached objects are not thread safe, so if you are going to store them in the
HttpSession, you have to serialize access to it in order to avoid potentially 
trying
to re-attach the same object to two different Sessions.  Norman's approach 
avoids
this problem and doesn't require any mutexes or locks...


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to