Hi all,
I have a object/object (sucessor relation) and i would like to create a new successor automatically when object is updated and update one property of object to fix the new successor.
So when event occured i do :
successor = new Object() ;
// fill properties of successor
object.setSuccessor(successor);
and save these two objects in one transaction.
I try to use Hibernate Event listeners but i can't save the two objects.
I read
http://opensource.atlassian.com/project ... e/HHH-1241
and
http://forum.hibernate.org/viewtopic.ph ... 84#2275484.
I don't know how to update object and create new one and associate it to the previous with two hibernate sessions.
Someone has any suggestions ?
Hibernate Event Listeners is not very well documented.
Thank you,
Sébastien Boutté