public void setStub(final boolean stub) {
        this.stub = stub;
    }
Reset the entity id and version to its undefined state so that it is non
persistent. This is often useful when copying an entity using copy.
stroom-legacy/stroom-legacy-model_6_1/src/main/java/stroom/legacy/model_6_1/BaseEntity.java