Search code examples
jhipsterjhipster-registry

entity generation in gateway app of jhipster


I am using entity sub generator to generate entities in my jhipster gateway app by giving path of microservice app. but looks like I have to run sub generator for every entity in microservice . is there any way that it can read all the .json file and in micro service and generate all the entities ?


Solution

  • I personally do as following :

    1. Copy repository ".jhipster" from the microservice repository into the Gateway repository
    2. Generate the gateway with the following command:

      yo jhipster --with-entities