Hi, Is there is any way how to get entity state before modifications where made to the entity in transaction ?.
For example pseudo code: tx.begin() Entity a = session.load( .. ) now we have entity state E1 from the database assuming that entity is not in cache // modify entity state a.modifyState() - state is E2 t.commit() Is there is any way how to get state E1 in the Cascades processing code ? I have looked at SessiomImplementator and I can not figure out how. Main reason for that is that I'm looking how to implement transparent delete on one-to-one associations. Imagine situation: There is Person class which have one-to-one association with PersonInfo right now If I want to delete this association I need to call session.delete(info) It would be nice to have code like this: person.setInfo(null); tx.commit(); In order to implement this Cascades processing code need to know that that association was deleted in this transaction. Thanks, Giedrius ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel