Code example for EmptyInterceptor

 * One use case is to set creation and modified time on 
 * on save, merge or collection cascades 
public class HypericInterceptorTarget extends EmptyInterceptor {
    private final Log _log = LogFactory.getLog(HypericInterceptor.class);
    public String onPrepareStatement(String sql) {
        return sql;
    private boolean entHasContainerManagedTimestamp(Object o) { 
        return o instanceof ContainerManagedTimestampTrackable; 
    public boolean onFlushDirty(Object entity, Serializable id, 
                                Object[] currentState, Object[] previousState,  
                                String[] propertyNames, Type[] types) {
        try {