Repository: jhipster/jhipster-lite
Pull request #12435 (2025-05-01 20:06:11)

Rename neo4j migration
<img width="391" alt="image" src="https://github.com/user-attachments/assets/5cbc98d5-5856-432b-a9e2-bdf1f6e213ea" />



Patch:
diff --git a/src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4jmigrations/application/Neo4jMigrationsApplicationService.java b/src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4j/application/Neo4jMigrationApplicationService.java
similarity index 60%
rename from src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4jmigrations/application/Neo4jMigrationsApplicationService.java
rename to src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4j/application/Neo4jMigrationApplicationService.java
index 357136c9e..574abb1de 100644
--- a/src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4jmigrations/application/Neo4jMigrationsApplicationService.java
+++ b/src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4j/application/Neo4jMigrationApplicationService.java
@@ -1,17 +1,17 @@
-package tech.jhipster.lite.generator.server.springboot.dbmigration.neo4jmigrations.application;
+package tech.jhipster.lite.generator.server.springboot.dbmigration.neo4j.application;
 
 import org.springframework.stereotype.Service;
-import tech.jhipster.lite.generator.server.springboot.dbmigration.neo4jmigrations.domain.Neo4jMigrationsModuleFactory;
+import tech.jhipster.lite.generator.server.springboot.dbmigration.neo4j.domain.Neo4jMigrationModuleFactory;
 import tech.jhipster.lite.module.domain.JHipsterModule;
 import tech.jhipster.lite.module.domain.properties.JHipsterModuleProperties;
 
 @Service
-public class Neo4jMigrationsApplicationService {
+public class Neo4jMigrationApplicationService {
 
-  private final Neo4jMigrationsModuleFactory neo4jMigrations;
+  private final Neo4jMigrationModuleFactory neo4jMigrations;
 
-  public Neo4jMigrationsApplicationService() {
-    neo4jMigrations = new Neo4jMigrationsModuleFactory();
+  public Neo4jMigrationApplicationService() {
+    neo4jMigrations = new Neo4jMigrationModuleFactory();
   }
 
   public JHipsterModule buildModule(JHipsterModuleProperties properties) {
diff --git a/src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4jmigrations/domain/Neo4jMigrationsModuleFactory.java b/src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4j/domain/Neo4jMigrationModuleFactory.java
similarity index 95%
rename from src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4jmigrations/domain/Neo4jMigrationsModuleFactory.java
rename to src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4j/domain/Neo4jMigrationModuleFactory.java
index fcc7c887c..414118a90 100644
--- a/src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4jmigrations/domain/Neo4jMigrationsModuleFactory.java
+++ b/src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4j/domain/Neo4jMigrationModuleFactory.java
@@ -1,4 +1,4 @@
-package tech.jhipster.lite.generator.server.springboot.dbmigration.neo4jmigrations.domain;
+package tech.jhipster.lite.generator.server.springboot.dbmigration.neo4j.domain;
 
 import static tech.jhipster.lite.module.domain.JHipsterModule.artifactId;
 import static tech.jhipster.lite.module.domain.JHipsterModule.documentationTitle;
@@ -14,7 +14,7 @@ import tech.jhipster.lite.module.domain.file.JHipsterSource;
 import tech.jhipster.lite.module.domain.properties.JHipsterModuleProperties;
 import tech.jhipster.lite.shared.error.domain.Assert;
 
-public class Neo4jMigrationsModuleFactory {
+public class Neo4jMigrationModuleFactory {
 
   private static final JHipsterSource SOURCE = from("server/springboot/database/neo4j-migrations");
 
diff --git a/src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4jmigrations/infrastructure/primary/Neo4jMigrationsModuleConfiguration.java b/src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4j/infrastructure/primary/Neo4jMigrationModuleConfiguration.java
similarity index 82%
rename from src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4jmigrations/infrastructure/primary/Neo4jMigrationsModuleConfiguration.java
rename to src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4j/infrastructure/primary/Neo4jMigrationModuleConfiguration.java
index d41407332..ea96393a0 100644
--- a/src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4jmigrations/infrastructure/primary/Neo4jMigrationsModuleConfiguration.java
+++ b/src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4j/infrastructure/primary/Neo4jMigrationModuleConfiguration.java
@@ -1,20 +1,20 @@
-package tech.jhipster.lite.generator.server.springboot.dbmigration.neo4jmigrations.infrastructure.primary;
+package tech.jhipster.lite.generator.server.springboot.dbmigration.neo4j.infrastructure.primary;
 
 import static tech.jhipster.lite.shared.slug.domain.JHLiteModuleSlug.NEO4J;
 import static tech.jhipster.lite.shared.slug.domain.JHLiteModuleSlug.NEO4J_MIGRATIONS;
 
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
-import tech.jhipster.lite.generator.server.springboot.dbmigration.neo4jmigrations.application.Neo4jMigrationsApplicationService;
+import tech.jhipster.lite.generator.server.springboot.dbmigration.neo4j.application.Neo4jMigrationApplicationService;
 import tech.jhipster.lite.module.domain.resource.JHipsterModuleOrganization;
 import tech.jhipster.lite.module.domain.resource.JHipsterModulePropertiesDefinition;
 import tech.jhipster.lite.module.domain.resource.JHipsterModuleResource;
 
 @Configuration
-class Neo4jMigrationsModuleConfiguration {
+class Neo4jMigrationModuleConfiguration {
 
   @Bean
-  JHipsterModuleResource neo4jMigrationsModule(Neo4jMigrationsApplicationService neo4jMigrations) {
+  JHipsterModuleResource neo4jMigrationsModule(Neo4jMigrationApplicationService neo4jMigrations) {
     return JHipsterModuleResource.builder()
       .slug(NEO4J_MIGRATIONS)
       .propertiesDefinition(
diff --git a/src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4jmigrations/package-info.java b/src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4j/package-info.java
similarity index 83%
rename from src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4jmigrations/package-info.java
rename to src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4j/package-info.java
index 75148a92c..20c2d677e 100644
--- a/src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4jmigrations/package-info.java
+++ b/src/main/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4j/package-info.java
@@ -1,2 +1,2 @@
 @tech.jhipster.lite.BusinessContext
-package tech.jhipster.lite.generator.server.springboot.dbmigration.neo4jmigrations;
+package tech.jhipster.lite.generator.server.springboot.dbmigration.neo4j;


Test patch:
diff --git a/src/test/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4jmigrations/domain/Neo4jMigrationsModuleFactoryTest.java b/src/test/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4j/domain/Neo4jMigrationsModuleFactoryTest.java
similarity index 92%
rename from src/test/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4jmigrations/domain/Neo4jMigrationsModuleFactoryTest.java
rename to src/test/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4j/domain/Neo4jMigrationsModuleFactoryTest.java
index 27fcd2a1d..62661bf68 100644
--- a/src/test/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4jmigrations/domain/Neo4jMigrationsModuleFactoryTest.java
+++ b/src/test/java/tech/jhipster/lite/generator/server/springboot/dbmigration/neo4j/domain/Neo4jMigrationsModuleFactoryTest.java
@@ -1,4 +1,4 @@
-package tech.jhipster.lite.generator.server.springboot.dbmigration.neo4jmigrations.domain;
+package tech.jhipster.lite.generator.server.springboot.dbmigration.neo4j.domain;
 
 import static tech.jhipster.lite.module.infrastructure.secondary.JHipsterModulesAssertions.assertThatModuleWithFiles;
 import static tech.jhipster.lite.module.infrastructure.secondary.JHipsterModulesAssertions.pomFile;
@@ -13,7 +13,7 @@ import tech.jhipster.lite.module.domain.properties.JHipsterModuleProperties;
 @UnitTest
 class Neo4jMigrationsModuleFactoryTest {
 
-  private static final Neo4jMigrationsModuleFactory factory = new Neo4jMigrationsModuleFactory();
+  private static final Neo4jMigrationModuleFactory factory = new Neo4jMigrationModuleFactory();
 
   @Test
   void shouldBuildModule() {