Skip to content

Commit

Permalink
npmw created after ./npmw started
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert committed Sep 12, 2024
1 parent 15cdb67 commit 4c608fb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion generators/server/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ export default class JHipsterServerGenerator extends BaseApplicationGenerator {
projectVersion;

async beforeQueue() {
const { skipClient, clientFramework } = this.jhipsterConfigWithDefaults;

if (!this.fromBlueprint) {
loadStoredAppOptions.call(this);
await this.composeWithBlueprints();
Expand All @@ -113,6 +115,9 @@ export default class JHipsterServerGenerator extends BaseApplicationGenerator {
if (!this.delegateToBlueprint) {
await this.dependsOnBootstrapApplication();
await this.dependsOnJHipster(GENERATOR_COMMON);
if (!skipClient && clientFramework !== 'no') {
await this.dependsOnJHipster('jhipster:java:node');
}
}
}

Expand Down Expand Up @@ -349,7 +354,7 @@ export default class JHipsterServerGenerator extends BaseApplicationGenerator {

if (field.fieldType === BYTE_BUFFER) {
this.log.warn(
`Cannot use validation in .jhipster/${entityName}.json for field ${stringifyApplicationData(field)}
`Cannot use validation in .jhipster/${entityName}.json for field ${stringifyApplicationData(field)}
Hibernate JPA 2 Metamodel does not work with Bean Validation 2 for LOB fields, so LOB validation is disabled`,
);
field.fieldValidate = false;
Expand Down

0 comments on commit 4c608fb

Please sign in to comment.