Reputation: 1
I'm trying to create job table have multi-image in JDL
I used to one-to-many relationship but jhipster warnning:
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
My job JDL like that:
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
How can I fix it. please help!
Upvotes: 0
Views: 1118
Reputation: 21
Unidirectional one-to-many relationship is not provided by default in JHipster at the moment.
It should be like this:
relationship OneToMany{
Job{image} to Attachment{job}
}
Upvotes: 0