【发布时间】:2019-02-06 15:05:11
【问题描述】:
我在 jhipster 的帮助下创建了实体并手动修改了实体。
随着时间的推移,我需要添加更多字段。
我运行jhipster entity Download 并一步一步地按照说明进行操作。此后生成器谈到冲突并提供完全替换许多文件:
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;
}
【问题讨论】: