Closed DasHasan closed 1 year ago
This issue is stale because it has been open 30 days with no activity. Our core developers tend to be more verbose on denying. If there is no negative comment, possibly this feature will be accepted. We are accepting PRs :smiley:. Comment or this will be closed in 7 days
Any updates on this or am I missing something?
Currently adding a one-to-many
relationship without the many-to-one
in the other side will cause this problem.
Reworking entities prompt is in my todo, but not sure when I will manage to do it.
This issue is stale because it has been open 30 days with no activity. Our core developers tend to be more verbose on denying. If there is no negative comment, possibly this feature will be accepted. We are accepting PRs :smiley:. Comment or this will be closed in 7 days
Is there any feedback on this ?
any news about this ?
Will be fixed for v8.
I suppose this is fixed in main by https://github.com/jhipster/generator-jhipster/pull/21509 and https://github.com/jhipster/generator-jhipster/pull/21535
I have two entities named
Teacher
andStudent
and I want to generate a relationship between those two with the cli. Both entities have already been created and are listed in the .jhipster directory.edit: generating relationships with a jdl file works as intended
Overview of the issue
If I try to generate relationships with the CLI I get the following error, even though both entities exists:
Motivation for or Use Case
It would be great if I could generate relationships from the cli so I don't have to write a jdl definition for all my entities
Reproduce the error
Create two entities and try to generate a relationship afterwards.
Related issues
Suggest a Fix
JHipster Version(s)
7.2.0
JHipster configuration
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryBrowsers and Operating System
edit: I just found this: https://github.com/jhipster/generator-jhipster/blob/b11abef0a11e1ef25fac28a032bd21f26d79a166/utils/relationship.js#L117-L125
Why is it, that the OneToMany relation gets filtered explicitly?