I am developing an app using the Jhipster. In my domain design I have five relationships with the User entity. I don't understand why the Jhipster does not allow relationships from it. I have changed the design so it counts with ManyToOne relationships etc. to avoid changing the User entity, but there is one relationship I cannot change - User is resident of a Flat, Flat has multiple residents.
I can adjust the generated entities and related files by hand, but that can produce problems in the future, when I would like to change the domain and wanted to use the jhipster tools (jhipster-uml
, yo jhipster:entity
)
My question is - is there a way of creating such OneToMany relationship with the pre-generated User entity using supplied jhipster tools?
I have read the related stackoverflow questions (1, 2), but that did not help very much.
Jhipster version 3.1.0, jhipster-uml version 1.6.5. My domain design in JDL is avalaible at GitHub.