我用的是杰普斯特2.27.2
我创建了一个实体:合作者(nom,婚前协议)
我创建了一个实体:与协作者有关系的societeClient:
与其他实体建立关系?是否要向另一个实体添加关系?是 ?另一个实体的名字是什么?合作者 ?这段关系的名字是什么?合作者 ?这种关系的类型是什么?一对多 ?在另一个实体中,这种关系的名称是什么?societeClient
在运行mvn时,我会得到以下错误:
由: com.techvalley.rhtechvalley.domain.Collaborateur.societeClient : mappedBy引用引起的:未知目标实体属性: com.techvalley.rhtechvalley.domain.SocieteClient.collaborateurs中的org.hibernate.AnnotationException
协作类中不存在societeClient属性。正常吗?
发布于 2016-03-11 09:15:15
这是预期的行为:在创建其他实体之前,您没有在collaborateur中创建societeClient关系。
这里记录了这一点:https://jhipster.github.io/managing-relationships/
要修复实体,可以读取“第二次生成实体”https://jhipster.github.io/creating-an-entity/
https://stackoverflow.com/questions/35935510
复制相似问题