Code example for EmptyInterceptor

 * It will grab the user from 
 * {@link org.sculptor.framework.errorhandling.ServiceContext} provided by 
 * {@link org.sculptor.framework.errorhandling.ServiceContextStore}. 
public class AuditInterceptor extends EmptyInterceptor {
    private static final long serialVersionUID = -4898120478874862611L;
    public void onDelete(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types) {
        // do nothing 
    public boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState,
            String[] propertyNames, Type[] types) {
        return changeLastUpdatedInformation(entity, currentState, propertyNames);
Experience pair programming with AI  Get Codota for Java