Hi,
I am using Hibernate3-3.2.0.dev-20060906, with annotations for mappings and I have the following issues:
I create an object in one session and become persisted in the db. When the session is closed this object becomes a detached object. In a separate session I retrieve this object and delete it from db. In another fresh session, I call merge() on the detached object and the result I got is that the object is persisted to the db (re-created). I am wondering if this is correct. I would think is dangerous and should not be allowed to persist detached objects that were deleted in a previous session.
I debugged the code and it seems to be an issue caused by the fact that there is no specified value for unsaved-value for versioning. Using annotation, I couldn’t find a corresponding parameter for the @Version annotation.
Please, advise.
|