jhipster / generator-jhipster

JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures.
https://www.jhipster.tech
Apache License 2.0
21.56k stars 4.02k forks source link

Entity subgenerator #3681

Closed fmatuszewski closed 8 years ago

fmatuszewski commented 8 years ago

Bug.

When execute entity sub generator on gateway project on imported entity and adding new relationships. Then after re generation microserviceName and searchEngine options are removed from .jhipster file When after that entity is re generated then it generate backend logic because microserviceName was omitted form description file.

I found this bug when I wanted to generate new relationships between entities that are in two different microservices. It is impossible to do it in backend. But relationship can be added in Gateway frontend code base.

n/a

n/a

Fix entity sub generator [BETA] Yes, add more fields and relationships option

deepu105 commented 8 years ago

OK on second thought I guess it would make sense to have an option to edit the entity here.

fmatuszewski commented 8 years ago

What I want to do is to maintain relationship between entities in two different microservices. What I did. I created eintity with fields for foreign keys like foreignEntityId and I now override this in frontend so I can get a combo box generated. and it works. It is no problem for me because I can modify this field by hand but on the other hand I think it should bo possible to modify it in the forntend only to meet more complicated scienarios like this.

deepu105 commented 8 years ago

I understand your use case and thats why I have fixed it :smile: