Skip to content

Commit

Permalink
Merge pull request #26099 from mshima/entity-generator
Browse files Browse the repository at this point in the history
Fix bidirectional/unidirectional question
  • Loading branch information
DanielFran committed May 9, 2024
2 parents 5a9bf7b + 7f79722 commit 31f35c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
14 changes: 2 additions & 12 deletions generators/entity/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,16 +210,6 @@ export default class EntityGenerator extends BaseApplicationGenerator {
askForFiltering: prompts.askForFiltering,
askForReadOnly: prompts.askForReadOnly,
askForPagination: prompts.askForPagination,
});
}

get [BaseApplicationGenerator.POST_PREPARING]() {
return this.delegateTasksToBlueprint(() => this.postPreparing);
}

// Public API method used by the getter and also by Blueprints
get default() {
return this.asDefaultTaskGroup({
async composeEntities() {
// We need to compose with others entities to update relationships.
await this.composeWithJHipster(GENERATOR_ENTITIES, {
Expand All @@ -233,8 +223,8 @@ export default class EntityGenerator extends BaseApplicationGenerator {
});
}

get [BaseApplicationGenerator.DEFAULT]() {
return this.delegateTasksToBlueprint(() => this.default);
get [BaseApplicationGenerator.POST_PREPARING]() {
return this.delegateTasksToBlueprint(() => this.postPreparing);
}

// Public API method used by the getter and also by Blueprints
Expand Down
2 changes: 1 addition & 1 deletion generators/entity/prompts.js
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ async function askForRelationship(...args) {

return true;
},
type: 'input',
type: 'confirm',
name: 'bidirectional',
message: 'Do you want to generate a bidirectional relationship',
default: true,
Expand Down

0 comments on commit 31f35c3

Please sign in to comment.