storing entities during prePersist/preUpdate/preRemove Doing stuff on postFlush Preventing infinite recursion Finding previous values