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()' : '', });