Closed tchlyah closed 2 years ago
@mshima can you please take a look ? It's kind of urgent since I can't use the new collections and scope introduced by JHipster 7.7.0! Thanks
I confirm. I prefer testing embedded instead of primaryKey.
As workaround add @EagerLoad
annotation to the relationship, it should not change anything using couchbase.
Overview of the issue
It seems that there is a regression in latest version of JHipster (7.7.0): If the other side of a OneToOne relationship is embedded, the generation fails with the following error:
Reproduce the error
Use the JDL below.
Suggest a Fix
A simple fix is to add a check
relationship.otherEntity.primaryKey != null
to https://github.com/jhipster/generator-jhipster/blob/b3fca5e60288c9a5a8d8e84dfee314a20fc97b45/generators/entity/index.js#L860-L860But since this code didn't change on version 7.7.0 (there was some updates after in the main branche but the issue is the same), I think it is coming from an other change that I couldn't find.
JHipster Version(s)
7.7.0
JHipster configuration
JDL definitions