Repository: jhipster/jhipster-lite
Pull request #12169 (2025-03-23 14:57:20)

Rename package java_enum to javaenum


Patch:
diff --git a/src/main/java/tech/jhipster/lite/generator/server/javatool/java_enum/package-info.java b/src/main/java/tech/jhipster/lite/generator/server/javatool/java_enum/package-info.java
deleted file mode 100644
index 3da3618c1..000000000
--- a/src/main/java/tech/jhipster/lite/generator/server/javatool/java_enum/package-info.java
+++ /dev/null
@@ -1,2 +0,0 @@
-@tech.jhipster.lite.BusinessContext
-package tech.jhipster.lite.generator.server.javatool.java_enum;
diff --git a/src/main/java/tech/jhipster/lite/generator/server/javatool/java_enum/application/JavaEnumsApplicationService.java b/src/main/java/tech/jhipster/lite/generator/server/javatool/javaenum/application/JavaEnumsApplicationService.java
similarity index 74%
rename from src/main/java/tech/jhipster/lite/generator/server/javatool/java_enum/application/JavaEnumsApplicationService.java
rename to src/main/java/tech/jhipster/lite/generator/server/javatool/javaenum/application/JavaEnumsApplicationService.java
index 5ad5c9737..d2fdf33bf 100644
--- a/src/main/java/tech/jhipster/lite/generator/server/javatool/java_enum/application/JavaEnumsApplicationService.java
+++ b/src/main/java/tech/jhipster/lite/generator/server/javatool/javaenum/application/JavaEnumsApplicationService.java
@@ -1,7 +1,7 @@
-package tech.jhipster.lite.generator.server.javatool.java_enum.application;
+package tech.jhipster.lite.generator.server.javatool.javaenum.application;
 
 import org.springframework.stereotype.Service;
-import tech.jhipster.lite.generator.server.javatool.java_enum.domain.JavaEnumsModuleFactory;
+import tech.jhipster.lite.generator.server.javatool.javaenum.domain.JavaEnumsModuleFactory;
 import tech.jhipster.lite.module.domain.JHipsterModule;
 import tech.jhipster.lite.module.domain.properties.JHipsterModuleProperties;
 
diff --git a/src/main/java/tech/jhipster/lite/generator/server/javatool/java_enum/domain/JavaEnumsModuleFactory.java b/src/main/java/tech/jhipster/lite/generator/server/javatool/javaenum/domain/JavaEnumsModuleFactory.java
similarity index 96%
rename from src/main/java/tech/jhipster/lite/generator/server/javatool/java_enum/domain/JavaEnumsModuleFactory.java
rename to src/main/java/tech/jhipster/lite/generator/server/javatool/javaenum/domain/JavaEnumsModuleFactory.java
index 2ec58a42e..57d40aa78 100644
--- a/src/main/java/tech/jhipster/lite/generator/server/javatool/java_enum/domain/JavaEnumsModuleFactory.java
+++ b/src/main/java/tech/jhipster/lite/generator/server/javatool/javaenum/domain/JavaEnumsModuleFactory.java
@@ -1,4 +1,4 @@
-package tech.jhipster.lite.generator.server.javatool.java_enum.domain;
+package tech.jhipster.lite.generator.server.javatool.javaenum.domain;
 
 import static tech.jhipster.lite.module.domain.JHipsterModule.from;
 import static tech.jhipster.lite.module.domain.JHipsterModule.moduleBuilder;
diff --git a/src/main/java/tech/jhipster/lite/generator/server/javatool/java_enum/infrastructure/primary/JavaEnumsModuleConfiguration.java b/src/main/java/tech/jhipster/lite/generator/server/javatool/javaenum/infrastructure/primary/JavaEnumsModuleConfiguration.java
similarity index 83%
rename from src/main/java/tech/jhipster/lite/generator/server/javatool/java_enum/infrastructure/primary/JavaEnumsModuleConfiguration.java
rename to src/main/java/tech/jhipster/lite/generator/server/javatool/javaenum/infrastructure/primary/JavaEnumsModuleConfiguration.java
index 60adf1257..c01a5003b 100644
--- a/src/main/java/tech/jhipster/lite/generator/server/javatool/java_enum/infrastructure/primary/JavaEnumsModuleConfiguration.java
+++ b/src/main/java/tech/jhipster/lite/generator/server/javatool/javaenum/infrastructure/primary/JavaEnumsModuleConfiguration.java
@@ -1,8 +1,8 @@
-package tech.jhipster.lite.generator.server.javatool.java_enum.infrastructure.primary;
+package tech.jhipster.lite.generator.server.javatool.javaenum.infrastructure.primary;
 
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
-import tech.jhipster.lite.generator.server.javatool.java_enum.application.JavaEnumsApplicationService;
+import tech.jhipster.lite.generator.server.javatool.javaenum.application.JavaEnumsApplicationService;
 import tech.jhipster.lite.module.domain.resource.JHipsterModuleOrganization;
 import tech.jhipster.lite.module.domain.resource.JHipsterModulePropertiesDefinition;
 import tech.jhipster.lite.module.domain.resource.JHipsterModuleResource;
diff --git a/src/main/java/tech/jhipster/lite/generator/server/javatool/javaenum/package-info.java b/src/main/java/tech/jhipster/lite/generator/server/javatool/javaenum/package-info.java
new file mode 100644
index 000000000..71fb6a020
--- /dev/null
+++ b/src/main/java/tech/jhipster/lite/generator/server/javatool/javaenum/package-info.java
@@ -0,0 +1,2 @@
+@tech.jhipster.lite.BusinessContext
+package tech.jhipster.lite.generator.server.javatool.javaenum;


Test patch:
diff --git a/src/test/java/tech/jhipster/lite/generator/server/javatool/java_enum/domain/JavaEnumsModuleFactoryTest.java b/src/test/java/tech/jhipster/lite/generator/server/javatool/javaenum/domain/JavaEnumsModuleFactoryTest.java
similarity index 94%
rename from src/test/java/tech/jhipster/lite/generator/server/javatool/java_enum/domain/JavaEnumsModuleFactoryTest.java
rename to src/test/java/tech/jhipster/lite/generator/server/javatool/javaenum/domain/JavaEnumsModuleFactoryTest.java
index e9f35dd09..74fa368b2 100644
--- a/src/test/java/tech/jhipster/lite/generator/server/javatool/java_enum/domain/JavaEnumsModuleFactoryTest.java
+++ b/src/test/java/tech/jhipster/lite/generator/server/javatool/javaenum/domain/JavaEnumsModuleFactoryTest.java
@@ -1,4 +1,4 @@
-package tech.jhipster.lite.generator.server.javatool.java_enum.domain;
+package tech.jhipster.lite.generator.server.javatool.javaenum.domain;
 
 import static tech.jhipster.lite.module.infrastructure.secondary.JHipsterModulesAssertions.*;