jHipster: how to generate only entities during jdl import

8.9k Views Asked by At

jHipster: how to generate only entities during jdl import

or entities plus dto and mappers?

jhipster import-jdl jhipster-jdl.jh
2

There are 2 best solutions below

1
On BEST ANSWER

To generate just entities (and skip application JDL generation), you can pass --ignore-application. The full command will look like: jhipster import-jdl jhipster-jdl.jh --ignore-application

If you want DTOs and Mappers, add dto * with mapstruct to the bottom of your JDL. More info in the docs: https://jhipster.tech/jdl/

0
On

You can use jhipster entity <entityName> --[options] where options are:

  • --skip-server - This will skip the server-side code and will generate only the client-side code.
  • --skip-client - This will skip the client-side code and will generate only the server-side code.

Check: https://www.jhipster.tech/creating-an-entity/