Skip to content

Commit

Permalink
Update generator.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Oct 23, 2024
1 parent 75007d6 commit fb49e37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generators/spring-boot/generators/graalvm/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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 =>
Expand Down

0 comments on commit fb49e37

Please sign in to comment.