From 273a59ddb95563e688f35d145dbda01e626b2761 Mon Sep 17 00:00:00 2001 From: Marcelo Shima Date: Sun, 26 May 2024 19:25:29 -0300 Subject: [PATCH] Update generator.ts --- generators/spring-boot/generator.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/generators/spring-boot/generator.ts b/generators/spring-boot/generator.ts index 2906dce2efbc..5c6c29d0ed35 100644 --- a/generators/spring-boot/generator.ts +++ b/generators/spring-boot/generator.ts @@ -286,7 +286,11 @@ export default class SpringBootGenerator extends BaseApplicationGenerator { const { reactive } = application; applicationDefaults({ __override__: false, - requiresDeleteAllUsers: data => data.authenticationTypeOauth2 || (reactive && data.databaseTypeSql), + requiresDeleteAllUsers: data => + data.authenticationTypeOauth2 || + (reactive && data.databaseTypeSql) || + (!reactive && data.databaseTypeMongodb) || + (!reactive && data.databaseTypeCassandra), reactorBlock: reactive ? '.block()' : '', reactorBlockOptional: reactive ? '.blockOptional()' : '', });