Can I generate the application according to a package structure that I have determined in Jhipster?

85 Views Asked by At

I want to generate an app with a package structure and project directories that I have determined in Jhipster. Can I generate the application according to a package structure that I have determined in Jhipster?

For example I want to packages' names as:

xx.com.xx. project name. inner project name. service or library name

And for example I want to generate the spring project files as this package structure:

-api
   -rest
   -kafka
-service
   -dto
      -mapper
-repository
   -entity

...

If I can, how can I do it, can you give a short example? I'm pretty new to this, I hope I explained what I wanted to say.

1

There are 1 best solutions below

2
Matt Raible On

You should be able to use @EntityPackage in your JDL to modify where entity files are put when you generate them. Example JDL:

https://github.com/jhipster/generator-jhipster/blob/main/test-integration/samples/jdl-entities/custom-domain.jdl#L2