JHipster Entity sub generator - update - master.xml duplicate entries
I am having problems using the entity subgenerator when trying to update an existing object.
After launch:
jhipster entity <existingEntity>
.. and answering follow-up questions, eg. "Yes, add more fields and relationships", I am asked if I want to overwrite the files (which I do), however one of them is master.xml
. He adds two new entries:
include File = "classpath: config / liquiBase / changes / 20170604231923_added_entity_Car.xml" relativeToChangelogFile = "false" / ">
AND
include File = "classpath: config / liquiBase / changes / 20170604231923_added_entity_constraints_Car.xml" relativeToChangelogFile = "false" / ">
This addition :
include file = "config / linibase / changelog / 20170604231923_added_entity_Car.xml" relativeToChangelogFile = "false" / ">
AND
include File = "config / liquiBase / changes / 20170604231923_added_entity_constraints_Car.xml" relativeToChangelogFile = "false" / ">
... which already exists (from the JDL import).
They both refer to the same files. Except for new entries: classpath . Either way, the end result when choosing to overwrite and doing a clean install of mvn are errors regarding the existing entity and existing constraints (as you would expect). Am I missing a trick here? Should I not allow overwriting in this case? (I assumed this would just work).
The JHipster version is 4.6.2 (I recently updated it) and I haven't used the extra generator before I originally imported from JDL studio.
Thanks in advance for any help you can give.
source to share