|
Hi all.
I have loaded an object from DB, then I have update a field and finally I have invoke the saveOrUpdate method to persist the changes.
In the onFlushDirtyMethod of my interceptor, I update a field of the father (one-to-many bidir) with an SQL query. Then I invoke the refresh method for the father entity. What I try is to have the UPDATED father entity attached to the session.
The problem is that, although the father entity is correctly updated in the DB, the (father) entity, after refresh invocation, is not updated.
Is there any way to do this.
Note: in my case is not valid simply modify the father instance via original entity because, although is session-attached, the changes are not persisted.
_________________ Born to lose... live to win!
|