-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jhipster 7.1.0 import-jdl (or jdl) command regenerate all existing entity #1 #15967
Comments
Why is it an issue? it is the expected behaviour since it keeps everything consistent. |
resource files, service files,... must be customized according to your own business. it's never really exactly the same as the generated file. |
Your issue seems to be related to mine: #15366 As a workaround, you can add either the
|
You can use globs at .yo-resolve. |
This issue is stale because it has been open 30 days with no activity. |
Wrote a tips regarding code customization: https://github.com/jhipster/jhipster.github.io/pull/1171/files Bests |
Overview of the issue
When you define new entities in
.jdl
(in my case I named it is app.jdl) file, then usejhipster import-jdl (or jdl)
command to generate entity, all existing entities will be regenerated (expected only new entities will be generated). I try usejhipster jdl --skip-regenerate app.jdl
, but jhipster still regenerate all entities.Motivation for or Use Case
Jhipster (7.1.0) seems that default is to regenerate all entities, but when I use
--skip-regenerate
option, it cannot help. In my previous project, I use jhipster 6.8.0, it doesn't regenerate existing entities (only generate new entities or modifies entity).Reproduce the error
app.jdl
with one entity (eg: employee entity name), then usejhipster jdl app.jdl
to generate entity.app.jdl
(eg: department entity name), the usejhipster jdl app.jdl
, now both new entity (department) and existing entity (employee) are generated (expected only one department entity is generated).Related issues
.
Suggest a Fix
.
JHipster Version(s)
Jhipster 7.1.0
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Environment and Tools
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)
git version 2.22.0.windows.1
node: v12.18.4
npm: 6.14.6
Docker version 20.10.7, build f0df350
docker-compose version 1.29.2, build 5becea4c
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryBrowsers and Operating System
OS: Windows 10 64-bit
The text was updated successfully, but these errors were encountered: