org.javers.core.graph.ObjectAccessHook Maven / Gradle / Ivy
package org.javers.core.graph;
import java.util.Optional;
/**
* Object access hook
*
*
* Used for accessing object before commit.
* i.e. to unproxy hibernate object before comparison
*
* Needs to be idempotent because JaVers could call it more than once during diff.
*
*/
public interface ObjectAccessHook {
/** Return object wrapper, possibly without proxy initialization */
Optional> createAccessor(final T entity);
}