Hi!
> session.lock(object, LockMode.NONE)
This might also fail if the object already exists in the current
session, no?

You can safely reattach the object using

object = session.merge(object)

Though, you really should discard the old object then and work further
with the new one.

Ciao,
Mario

Reply via email to