Repository: jhipster/jhipster-lite
Pull request #12093 (2025-03-13 19:45:37)

Rename TSRestPaginationFactory to TSRestPaginationModuleFactory


Patch:
diff --git a/src/main/java/tech/jhipster/lite/generator/client/rest_pagination/application/TSRestPaginationApplicationService.java b/src/main/java/tech/jhipster/lite/generator/client/rest_pagination/application/TSRestPaginationApplicationService.java
index c3c38b2b5..547bf765b 100644
--- a/src/main/java/tech/jhipster/lite/generator/client/rest_pagination/application/TSRestPaginationApplicationService.java
+++ b/src/main/java/tech/jhipster/lite/generator/client/rest_pagination/application/TSRestPaginationApplicationService.java
@@ -1,14 +1,14 @@
 package tech.jhipster.lite.generator.client.rest_pagination.application;
 
 import org.springframework.stereotype.Service;
-import tech.jhipster.lite.generator.client.rest_pagination.domain.TSRestPaginationFactory;
+import tech.jhipster.lite.generator.client.rest_pagination.domain.TSRestPaginationModuleFactory;
 import tech.jhipster.lite.module.domain.JHipsterModule;
 import tech.jhipster.lite.module.domain.properties.JHipsterModuleProperties;
 
 @Service
 public class TSRestPaginationApplicationService {
 
-  private static final TSRestPaginationFactory factory = new TSRestPaginationFactory();
+  private static final TSRestPaginationModuleFactory factory = new TSRestPaginationModuleFactory();
 
   public JHipsterModule buildModule(JHipsterModuleProperties properties) {
     return factory.buildModule(properties);
diff --git a/src/main/java/tech/jhipster/lite/generator/client/rest_pagination/domain/TSRestPaginationFactory.java b/src/main/java/tech/jhipster/lite/generator/client/rest_pagination/domain/TSRestPaginationModuleFactory.java
similarity index 96%
rename from src/main/java/tech/jhipster/lite/generator/client/rest_pagination/domain/TSRestPaginationFactory.java
rename to src/main/java/tech/jhipster/lite/generator/client/rest_pagination/domain/TSRestPaginationModuleFactory.java
index 20ef7fde8..0f387a8aa 100644
--- a/src/main/java/tech/jhipster/lite/generator/client/rest_pagination/domain/TSRestPaginationFactory.java
+++ b/src/main/java/tech/jhipster/lite/generator/client/rest_pagination/domain/TSRestPaginationModuleFactory.java
@@ -10,7 +10,7 @@ import tech.jhipster.lite.module.domain.file.JHipsterDestination;
 import tech.jhipster.lite.module.domain.file.JHipsterSource;
 import tech.jhipster.lite.module.domain.properties.JHipsterModuleProperties;
 
-public class TSRestPaginationFactory {
+public class TSRestPaginationModuleFactory {
 
   private static final JHipsterSource SOURCE = from("client/pagination/secondary");
   private static final JHipsterDestination MAIN_DESTINATION = to("src/main/webapp/app/shared/pagination/infrastructure/secondary/");


Test patch:
diff --git a/src/test/java/tech/jhipster/lite/generator/client/rest_pagination/domain/TSRestPaginationFactoryTest.java b/src/test/java/tech/jhipster/lite/generator/client/rest_pagination/domain/TSRestPaginationModuleFactoryTest.java
similarity index 87%
rename from src/test/java/tech/jhipster/lite/generator/client/rest_pagination/domain/TSRestPaginationFactoryTest.java
rename to src/test/java/tech/jhipster/lite/generator/client/rest_pagination/domain/TSRestPaginationModuleFactoryTest.java
index b3e03d6aa..3a04c7717 100644
--- a/src/test/java/tech/jhipster/lite/generator/client/rest_pagination/domain/TSRestPaginationFactoryTest.java
+++ b/src/test/java/tech/jhipster/lite/generator/client/rest_pagination/domain/TSRestPaginationModuleFactoryTest.java
@@ -10,9 +10,9 @@ import tech.jhipster.lite.module.domain.JHipsterModule;
 import tech.jhipster.lite.module.domain.properties.JHipsterModuleProperties;
 
 @UnitTest
-class TSRestPaginationFactoryTest {
+class TSRestPaginationModuleFactoryTest {
 
-  private static final TSRestPaginationFactory factory = new TSRestPaginationFactory();
+  private static final TSRestPaginationModuleFactory factory = new TSRestPaginationModuleFactory();
 
   @Test
   void shouldBuildModule() {