我正在尝试创建在JDL中具有多图像的作业表
我曾经是一对多的关系,但jhipster警告:
WARNING! otherEntityRelationshipName is missing in .jhipster/Attachment.json for relationship {
"relationshipName": "job",
"otherEntityName": "job",
"relationshipType": "many-to-one",
"otherEntityField": "id",
"otherEntityRelationshipName": "attachment"
}, using attachment as fallback
我的工作JDL是这样的:
microservice * with job
entity Job{
name String required
description String
}
entity Attachment{
name String
image ImageBlob
}
relationship OneToMany{
Job{image} to Attachment
}
service * with serviceClass
paginate * with pagination
我该如何解决。请帮忙!
答案 0 :(得分:0)
JHipster当前默认不提供单向一对多关系。
应该是这样的:
relationship OneToMany{
Job{image} to Attachment{job}
}