Jhipster 2.27.2:关系似乎没有很好地创建

Jhipster 2.27.2 : relationship doesn't seem to be well created

我正在使用 Jhipster 2.27.2
我创建了一个实体:collaborateur(nom,prenom)
我创建了一个实体:societeClient 与 collaborateur 的关系:

Generating relationships with other entities ? Do you want to add a relationship to another entity? Yes
? What is the name of the other entity? collaborateur
? What is the name of the relationship? collaborateur
? What is the type of the relationship? one-to-many
? What is the name of this relationship in the other entity ? societeClient

当 运行 mvn 我收到这个错误:

Caused by: org.hibernate.AnnotationException: mappedBy reference an unknown target entity property: com.techvalley.rhtechvalley.domain.Collaborateur.societeClient in com.techvalley.rhtechvalley.domain.SocieteClient.collaborateurs

societeClient 属性 在 Collaborateur class 中不存在。 正常吗?

这是预期的行为:您在创建其他实体之前没有在 collaborateur 中创建 societeClient 关系。

此处记录:https://jhipster.github.io/managing-relationships/

要修复您的实体,您可以阅读 'Generating an entity a second time' https://jhipster.github.io/creating-an-entity/