From fb49e3708de59b6e43beb8e8d7d74bd558b7f1d4 Mon Sep 17 00:00:00 2001 From: Marcelo Shima Date: Tue, 22 Oct 2024 23:42:14 -0300 Subject: [PATCH] Update generator.ts --- generators/spring-boot/generators/graalvm/generator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generators/spring-boot/generators/graalvm/generator.ts b/generators/spring-boot/generators/graalvm/generator.ts index 30b07fa253a4..5a792e3435b7 100644 --- a/generators/spring-boot/generators/graalvm/generator.ts +++ b/generators/spring-boot/generators/graalvm/generator.ts @@ -122,7 +122,7 @@ export default class GraalvmGenerator extends BaseApplicationGenerator { common: [{ templates: ['README.md.jhi.native'] }], config: [ javaMainPackageTemplatesBlock({ - condition: ctx => !ctx.reactive, + condition: ctx => !ctx.reactive && ctx.databaseTypeSql, templates: ['config/JacksonNativeConfiguration.java'], }), javaMainPackageTemplatesBlock({ @@ -297,7 +297,7 @@ import org.springframework.security.oauth2.core.oidc.user.OidcUser;`, get postWritingEntities() { return this.asPostWritingEntitiesTaskGroup({ async jsonFilter({ application, entities }) { - if (application.reactive) return; + if (application.reactive || !application.databaseTypeSql) return; for (const entity of entities.filter(({ builtIn, builtInUser, embedded }) => builtInUser || (!builtIn && !embedded))) { const entityClassFilePath = `${application.srcMainJava}/${entity.entityAbsoluteFolder}/domain/${entity.entityClass}.java`; this.editFile(entityClassFilePath, { assertModified: true }, content =>