Java 通过jhipster向实体添加字段

Java 通过jhipster向实体添加字段,java,jhipster,Java,Jhipster,我使用帮助jhipster创建了实体,并手动修改实体。 随着时间的推移,我需要添加更多字段。 我运行jhipster实体下载,并逐步遵循说明。此后,generator会提到冲突,并提出完全替换许多文件: conflict .jhipster/Download.json ? Overwrite .jhipster/Download.json? show the differences between the old and the new 应该是这样吗? 那么,我不明白下面的注释行包含什么代码

我使用帮助jhipster创建了实体,并手动修改实体。 随着时间的推移,我需要添加更多字段。 我运行jhipster实体下载,并逐步遵循说明。此后,generator会提到冲突,并提出完全替换许多文件:

 conflict .jhipster/Download.json
? Overwrite .jhipster/Download.json? show the differences between the old and the new
应该是这样吗? 那么,我不明白下面的注释行包含什么代码:

@CreatedBy
@ManyToOne
@JsonIgnoreProperties("downloads")
private User user;

// jhipster-needle-entity-add-field - JHipster will add fields here, do not remove
public UUID getId() {
    return id;
}

要在JHipster实体中添加字段,唯一实用的方法是重新生成该实体并覆盖现有文件

JHipster当前未使用添加的针(我在代码中找不到对它的引用),它的存在只是因为用户在本期中请求了它