Skip to content

Commit

Permalink
set requiresPersistableImplementation
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Mar 26, 2024
1 parent 611089a commit bf62832
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions generators/java-audit/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,16 @@ export default class extends BaseApplicationGenerator {
});
}

get [BaseApplicationGenerator.PREPARING_EACH_ENTITY]() {
return this.asConfiguringEachEntityTaskGroup({
async configureEntity({ entity }) {
if (entity.enableAudit) {
entity.requiresPersistableImplementation = true;
}
},
});
}

get [BaseApplicationGenerator.WRITING_ENTITIES]() {
return this.asWritingEntitiesTaskGroup({
async writingTemplateTask({ application, entities }) {
Expand Down

0 comments on commit bf62832

Please sign in to comment.