Arthur
Arthur

Reputation: 1176

jHipster: how to generate only entities during jdl import

jHipster: how to generate only entities during jdl import

or entities plus dto and mappers?

jhipster import-jdl jhipster-jdl.jh

Upvotes: 2

Views: 9967

Answers (2)

Jon Ruddell
Jon Ruddell

Reputation: 6352

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-file.jdl --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/

Upvotes: 6

dori
dori

Reputation: 140

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/

Upvotes: 3

Related Questions