Code example for EmptyInterceptor

0
    private AuditLog auditLog;
    private InterceptHelper interceptHelper;
    private UserContext userContext;
    private Boolean flag = false;
 
    public AuditInterceptor() { 
        interceptHelper = new InterceptHelper();
    } 
 
    public void createInitialValueMap(Object object) { 
        userContext = ((AbstractBusinessObject) object).getUserContext();
        interceptHelper.hibernateMeta(object, AuditConstants.TRANSACTIONBEGIN);
    } 
 
    public void createChangeValueMap(Object object) { 
        if (interceptHelper.getEntityName().equals(AuditConfiguration.getEntityToClassPath(object.getClass().getName()))) {
            interceptHelper.hibernateMeta(object, AuditConstants.TRANSACTIONEND);
        } 
    } 
 
Connect your IDE to all the code out there  Get Codota for Java