Code:
Yes, but I doubt whether this works in this case. Dealing with entities in different sessions doesn't seam to be a good idea.
sorry for asking stupid ... but why 'different session'? You could use the currentSession ... as long as you only need it to determine the changed properties ....?
if i'm right, the session isn't used until it its passed to the Type.isDirty-method ... so there should be no problem using it ...
or ... if it's the only thing that happens during hibernate-default-handling you can call the "Type.isDirty"-method on your own .. then you should be able to figure out which property has changed ...
gtx
curio