@Transient
    @Override
    public final Object getPrimaryKey() {
        if (!isPersistent()) {
            return null;
        }
        return Long.valueOf(getId());
    }
Have we saved yet?

@return yes if we have
stroom-legacy/stroom-legacy-model_6_1/src/main/java/stroom/legacy/model_6_1/BaseEntity.java