run
'jhipster import-jdl [path to jdl with audited entities] --blueprints entity-audit'
multiple times an and accept any change. Tested with latest git version and jhipster 7.9.3
In [package name].domain/AbstractAuditingEntity.java imports and annotation are replicated:
"import [package name].audit.EntityAuditEventListener;"
and e.g.
"@EntityListeners({ { AuditingEntityListener.class, EntityAuditEventListener.class }, EntityAuditEventListener.class })" after the second run. This results in compilation issues.
In [package name].TechnicalStructureTest.java imports and calls to ignoreDependency are replicated but the generated code still compiles.
If an application with entity-audit enabled is regenerated some code in domain/AbstractAuditingEntity.java and TechnicalStructureTest.java gets duplicated each execution. I suggest additional checks before replacing like here: https://github.com/nitram84/generator-jhipster-entity-audit/commit/5d776fcfd781e6e1cfd6418270fcf45a8fdd7642
Steps to reproduce:
run 'jhipster import-jdl [path to jdl with audited entities] --blueprints entity-audit' multiple times an and accept any change. Tested with latest git version and jhipster 7.9.3
In [package name].domain/AbstractAuditingEntity.java imports and annotation are replicated: "import [package name].audit.EntityAuditEventListener;" and e.g. "@EntityListeners({ { AuditingEntityListener.class, EntityAuditEventListener.class }, EntityAuditEventListener.class })" after the second run. This results in compilation issues.
In [package name].TechnicalStructureTest.java imports and calls to ignoreDependency are replicated but the generated code still compiles.