From 42ec1d131758df023d38ff73c73dd0e158c4b8f2 Mon Sep 17 00:00:00 2001 From: Shoun ICHIDA Date: Tue, 11 Oct 2022 14:40:58 +0200 Subject: [PATCH 1/3] Updated to spring-boot 2.2.13.RELEASE --- pom.xml | 24 +++++++++-------------- src/test/resources/application.properties | 1 + 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/pom.xml b/pom.xml index 5c5caa8..b1e5733 100644 --- a/pom.xml +++ b/pom.xml @@ -11,15 +11,9 @@ spring-hibernate-query-utils Library giving tools to detect N+1 queries and count the queries generated with Spring and Hibernate + Fork from https://github.com/yannbriancon/spring-hibernate-query-utils - https://github.com/yannbriancon/spring-hibernate-query-utils - - - - Yann Briançon - yann.briancon.73@gmail.com - - + https://github.com/sipios/spring-hibernate-query-utils @@ -30,9 +24,9 @@ - https://github.com/yannbriancon/spring-hibernate-query-utils - scm:git:git@github.com:yannbriancon/spring-hibernate-query-utils.git - scm:git:git@github.com:yannbriancon/spring-hibernate-query-utils.git + https://github.com/sipios/spring-hibernate-query-utils + scm:git:git@github.com:sipios/spring-hibernate-query-utils.git + scm:git:git@github.com:sipios/spring-hibernate-query-utils.git @@ -42,7 +36,7 @@ org.springframework.boot spring-boot-starter-parent - 2.2.1.RELEASE + 2.2.13.RELEASE @@ -100,7 +94,7 @@ org.apache.maven.plugins maven-source-plugin - 3.0.1 + 3.2.1 attach-sources @@ -113,7 +107,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.0.1 + 3.4.1 attach-javadocs @@ -126,7 +120,7 @@ org.apache.maven.plugins maven-gpg-plugin - 1.5 + 3.0.1 sign-artifacts diff --git a/src/test/resources/application.properties b/src/test/resources/application.properties index c01c54f..5df9065 100644 --- a/src/test/resources/application.properties +++ b/src/test/resources/application.properties @@ -3,3 +3,4 @@ spring.datasource.driver-class-name=org.h2.Driver spring.datasource.username=test spring.jpa.hibernate.ddl-auto=create-drop spring.jpa.properties.hibernate.hbm2ddl.import_files_sql_extractor=org.hibernate.tool.hbm2ddl.MultipleLinesSqlCommandExtractor +spring.jpa.show-sql=true \ No newline at end of file From 6a69ddee89f9ba450f3d896bcc7124a5431d16c7 Mon Sep 17 00:00:00 2001 From: Shoun ICHIDA Date: Tue, 11 Oct 2022 14:43:17 +0200 Subject: [PATCH 2/3] renamed packeg to sipios for ownership --- README.md | 52 ++++++++++--------- pom.xml | 4 +- .../config/HibernatePropertiesConfig.java | 4 +- .../NPlusOneQueriesDetectionProperties.java | 2 +- .../exception/NPlusOneQueriesException.java | 2 +- .../HibernateQueryInterceptor.java | 6 +-- .../interceptor/SelectQueriesInfo.java | 2 +- src/main/resources/META-INF/spring.factories | 2 +- .../{yannbriancon => sipios}/Application.java | 2 +- .../NPlusOneQueriesDisabledTest.java | 6 +-- .../NPlusOneQueriesExceptionTest.java | 16 +++--- .../NPlusOneQueriesLoggingTest.java | 10 ++-- .../interceptor/QueryCountTest.java | 8 +-- .../utils/entity/Avatar.java | 2 +- .../utils/entity/Message.java | 2 +- .../utils/entity/Post.java | 2 +- .../utils/entity/User.java | 2 +- .../utils/repository/AvatarRepository.java | 4 +- .../utils/repository/MessageRepository.java | 4 +- .../utils/repository/PostRepository.java | 4 +- .../utils/repository/UserRepository.java | 4 +- 21 files changed, 71 insertions(+), 69 deletions(-) rename src/main/java/com/{yannbriancon => sipios}/config/HibernatePropertiesConfig.java (89%) rename src/main/java/com/{yannbriancon => sipios}/config/NPlusOneQueriesDetectionProperties.java (96%) rename src/main/java/com/{yannbriancon => sipios}/exception/NPlusOneQueriesException.java (85%) rename src/main/java/com/{yannbriancon => sipios}/interceptor/HibernateQueryInterceptor.java (98%) rename src/main/java/com/{yannbriancon => sipios}/interceptor/SelectQueriesInfo.java (95%) rename src/test/java/com/{yannbriancon => sipios}/Application.java (91%) rename src/test/java/com/{yannbriancon => sipios}/interceptor/NPlusOneQueriesDisabledTest.java (91%) rename src/test/java/com/{yannbriancon => sipios}/interceptor/NPlusOneQueriesExceptionTest.java (92%) rename src/test/java/com/{yannbriancon => sipios}/interceptor/NPlusOneQueriesLoggingTest.java (93%) rename src/test/java/com/{yannbriancon => sipios}/interceptor/QueryCountTest.java (85%) rename src/test/java/com/{yannbriancon => sipios}/utils/entity/Avatar.java (95%) rename src/test/java/com/{yannbriancon => sipios}/utils/entity/Message.java (96%) rename src/test/java/com/{yannbriancon => sipios}/utils/entity/Post.java (95%) rename src/test/java/com/{yannbriancon => sipios}/utils/entity/User.java (95%) rename src/test/java/com/{yannbriancon => sipios}/utils/repository/AvatarRepository.java (69%) rename src/test/java/com/{yannbriancon => sipios}/utils/repository/MessageRepository.java (80%) rename src/test/java/com/{yannbriancon => sipios}/utils/repository/PostRepository.java (69%) rename src/test/java/com/{yannbriancon => sipios}/utils/repository/UserRepository.java (69%) diff --git a/README.md b/README.md index d0c4bde..e92637c 100644 --- a/README.md +++ b/README.md @@ -86,11 +86,13 @@ This library provides several benefits: ##### Maven Add the dependency to your project inside your `pom.xml` file with the right version + ```xml + - com.yannbriancon - spring-hibernate-query-utils - X.X.X + com.sipioscom.sipios + spring-hibernate-query-utils + X.X.X ``` @@ -149,8 +151,8 @@ class NPlusOneQueriesLoggingTest { LoggingEvent loggingEvent = loggingEventCaptor.getAllValues().get(0); assertThat(loggingEvent.getMessage()) - .contains("N+1 queries detected on a getter of the entity com.yannbriancon.utils.entity.User\n" + - " at com.yannbriancon.interceptor.NPlusOneQueriesLoggingTest." + + .contains("N+1 queries detected on a getter of the entity com.sipios.utils.entity.User\n" + + " at com.sipios.interceptor.NPlusOneQueriesLoggingTest." + "lambda$hibernateQueryInterceptor_isDetectingNPlusOneQueriesWhenMissingEagerFetchingOnQuery$0"); assertThat(Level.ERROR).isEqualTo(loggingEvent.getLevel()); } @@ -188,8 +190,8 @@ void nPlusOneQueriesDetection_throwsExceptionWhenSessionIsCleared() { assert false; } catch (NPlusOneQueriesException exception) { assertThat(exception.getMessage()) - .contains("N+1 queries detected on a getter of the entity com.yannbriancon.utils.entity.User\n" + - " at com.yannbriancon.interceptor.NPlusOneQueriesExceptionTest" + + .contains("N+1 queries detected on a getter of the entity com.sipios.utils.entity.User\n" + + " at com.sipios.interceptor.NPlusOneQueriesExceptionTest" + ".getMessageAuthorNameWithNPlusOneQuery"); } } @@ -252,30 +254,30 @@ Example in a test: ```java ... -import com.yannbriancon.interceptor.HibernateQueryInterceptor; +import com.sipios.interceptor.HibernateQueryInterceptor; @RunWith(SpringRunner.class) @SpringBootTest @Transactional public class NotificationResourceIntTest { - @Autowired - private HibernateQueryInterceptor hibernateQueryInterceptor; - - @Test - public void getNotification_isOk() throws Exception { - // Initialize the query to 0 and allow the counting - hibernateQueryInterceptor.startQueryCount(); - - // Call the resource that we want to test - MvcResult result = mvc.perform(get("/rest/notifications")) - .andExpect(status().isOk()) - .andReturn(); - - // Get the query count for this thread and check that it is equal to the number of query you expect, - // Let's say 4 for the example. - Assertions.assertThat(hibernateQueryInterceptor.getQueryCount()).isEqualTo(4); - } + @Autowired + private HibernateQueryInterceptor hibernateQueryInterceptor; + + @Test + public void getNotification_isOk() throws Exception { + // Initialize the query to 0 and allow the counting + hibernateQueryInterceptor.startQueryCount(); + + // Call the resource that we want to test + MvcResult result = mvc.perform(get("/rest/notifications")) + .andExpect(status().isOk()) + .andReturn(); + + // Get the query count for this thread and check that it is equal to the number of query you expect, + // Let's say 4 for the example. + Assertions.assertThat(hibernateQueryInterceptor.getQueryCount()).isEqualTo(4); + } } ``` diff --git a/pom.xml b/pom.xml index b1e5733..d3eac8a 100644 --- a/pom.xml +++ b/pom.xml @@ -3,9 +3,9 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - com.yannbriancon + com.sipios spring-hibernate-query-utils - 2.0.0 + 3.0.0 jar spring-hibernate-query-utils diff --git a/src/main/java/com/yannbriancon/config/HibernatePropertiesConfig.java b/src/main/java/com/sipios/config/HibernatePropertiesConfig.java similarity index 89% rename from src/main/java/com/yannbriancon/config/HibernatePropertiesConfig.java rename to src/main/java/com/sipios/config/HibernatePropertiesConfig.java index 5bef40e..98ac49d 100644 --- a/src/main/java/com/yannbriancon/config/HibernatePropertiesConfig.java +++ b/src/main/java/com/sipios/config/HibernatePropertiesConfig.java @@ -1,6 +1,6 @@ -package com.yannbriancon.config; +package com.sipios.config; -import com.yannbriancon.interceptor.HibernateQueryInterceptor; +import com.sipios.interceptor.HibernateQueryInterceptor; import org.springframework.boot.autoconfigure.orm.jpa.HibernatePropertiesCustomizer; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; diff --git a/src/main/java/com/yannbriancon/config/NPlusOneQueriesDetectionProperties.java b/src/main/java/com/sipios/config/NPlusOneQueriesDetectionProperties.java similarity index 96% rename from src/main/java/com/yannbriancon/config/NPlusOneQueriesDetectionProperties.java rename to src/main/java/com/sipios/config/NPlusOneQueriesDetectionProperties.java index bed7dca..ae8840a 100644 --- a/src/main/java/com/yannbriancon/config/NPlusOneQueriesDetectionProperties.java +++ b/src/main/java/com/sipios/config/NPlusOneQueriesDetectionProperties.java @@ -1,4 +1,4 @@ -package com.yannbriancon.config; +package com.sipios.config; import org.springframework.boot.context.properties.ConfigurationProperties; diff --git a/src/main/java/com/yannbriancon/exception/NPlusOneQueriesException.java b/src/main/java/com/sipios/exception/NPlusOneQueriesException.java similarity index 85% rename from src/main/java/com/yannbriancon/exception/NPlusOneQueriesException.java rename to src/main/java/com/sipios/exception/NPlusOneQueriesException.java index 03819dd..d2621fc 100644 --- a/src/main/java/com/yannbriancon/exception/NPlusOneQueriesException.java +++ b/src/main/java/com/sipios/exception/NPlusOneQueriesException.java @@ -1,4 +1,4 @@ -package com.yannbriancon.exception; +package com.sipios.exception; /** * Exception triggered when detecting N+1 queries diff --git a/src/main/java/com/yannbriancon/interceptor/HibernateQueryInterceptor.java b/src/main/java/com/sipios/interceptor/HibernateQueryInterceptor.java similarity index 98% rename from src/main/java/com/yannbriancon/interceptor/HibernateQueryInterceptor.java rename to src/main/java/com/sipios/interceptor/HibernateQueryInterceptor.java index fa4ffb0..9c15c97 100644 --- a/src/main/java/com/yannbriancon/interceptor/HibernateQueryInterceptor.java +++ b/src/main/java/com/sipios/interceptor/HibernateQueryInterceptor.java @@ -1,7 +1,7 @@ -package com.yannbriancon.interceptor; +package com.sipios.interceptor; -import com.yannbriancon.config.NPlusOneQueriesDetectionProperties; -import com.yannbriancon.exception.NPlusOneQueriesException; +import com.sipios.config.NPlusOneQueriesDetectionProperties; +import com.sipios.exception.NPlusOneQueriesException; import org.hibernate.EmptyInterceptor; import org.hibernate.Transaction; import org.slf4j.Logger; diff --git a/src/main/java/com/yannbriancon/interceptor/SelectQueriesInfo.java b/src/main/java/com/sipios/interceptor/SelectQueriesInfo.java similarity index 95% rename from src/main/java/com/yannbriancon/interceptor/SelectQueriesInfo.java rename to src/main/java/com/sipios/interceptor/SelectQueriesInfo.java index fe783ff..6ba5b96 100644 --- a/src/main/java/com/yannbriancon/interceptor/SelectQueriesInfo.java +++ b/src/main/java/com/sipios/interceptor/SelectQueriesInfo.java @@ -1,4 +1,4 @@ -package com.yannbriancon.interceptor; +package com.sipios.interceptor; class SelectQueriesInfo { private final String initialSelectQuery; diff --git a/src/main/resources/META-INF/spring.factories b/src/main/resources/META-INF/spring.factories index e4128c3..2eaff31 100644 --- a/src/main/resources/META-INF/spring.factories +++ b/src/main/resources/META-INF/spring.factories @@ -1,2 +1,2 @@ org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ - com.yannbriancon.config.HibernatePropertiesConfig + com.sipios.config.HibernatePropertiesConfig diff --git a/src/test/java/com/yannbriancon/Application.java b/src/test/java/com/sipios/Application.java similarity index 91% rename from src/test/java/com/yannbriancon/Application.java rename to src/test/java/com/sipios/Application.java index 200cfab..bcf62c0 100644 --- a/src/test/java/com/yannbriancon/Application.java +++ b/src/test/java/com/sipios/Application.java @@ -1,4 +1,4 @@ -package com.yannbriancon; +package com.sipios; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; diff --git a/src/test/java/com/yannbriancon/interceptor/NPlusOneQueriesDisabledTest.java b/src/test/java/com/sipios/interceptor/NPlusOneQueriesDisabledTest.java similarity index 91% rename from src/test/java/com/yannbriancon/interceptor/NPlusOneQueriesDisabledTest.java rename to src/test/java/com/sipios/interceptor/NPlusOneQueriesDisabledTest.java index b517d75..1767843 100644 --- a/src/test/java/com/yannbriancon/interceptor/NPlusOneQueriesDisabledTest.java +++ b/src/test/java/com/sipios/interceptor/NPlusOneQueriesDisabledTest.java @@ -1,7 +1,7 @@ -package com.yannbriancon.interceptor; +package com.sipios.interceptor; -import com.yannbriancon.utils.entity.Message; -import com.yannbriancon.utils.repository.MessageRepository; +import com.sipios.utils.entity.Message; +import com.sipios.utils.repository.MessageRepository; import org.junit.jupiter.api.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; diff --git a/src/test/java/com/yannbriancon/interceptor/NPlusOneQueriesExceptionTest.java b/src/test/java/com/sipios/interceptor/NPlusOneQueriesExceptionTest.java similarity index 92% rename from src/test/java/com/yannbriancon/interceptor/NPlusOneQueriesExceptionTest.java rename to src/test/java/com/sipios/interceptor/NPlusOneQueriesExceptionTest.java index 042af93..129fcad 100644 --- a/src/test/java/com/yannbriancon/interceptor/NPlusOneQueriesExceptionTest.java +++ b/src/test/java/com/sipios/interceptor/NPlusOneQueriesExceptionTest.java @@ -1,11 +1,11 @@ -package com.yannbriancon.interceptor; - -import com.yannbriancon.exception.NPlusOneQueriesException; -import com.yannbriancon.utils.entity.Message; -import com.yannbriancon.utils.entity.User; -import com.yannbriancon.utils.repository.AvatarRepository; -import com.yannbriancon.utils.repository.MessageRepository; -import com.yannbriancon.utils.repository.UserRepository; +package com.sipios.interceptor; + +import com.sipios.exception.NPlusOneQueriesException; +import com.sipios.utils.entity.Message; +import com.sipios.utils.entity.User; +import com.sipios.utils.repository.AvatarRepository; +import com.sipios.utils.repository.MessageRepository; +import com.sipios.utils.repository.UserRepository; import org.junit.jupiter.api.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; diff --git a/src/test/java/com/yannbriancon/interceptor/NPlusOneQueriesLoggingTest.java b/src/test/java/com/sipios/interceptor/NPlusOneQueriesLoggingTest.java similarity index 93% rename from src/test/java/com/yannbriancon/interceptor/NPlusOneQueriesLoggingTest.java rename to src/test/java/com/sipios/interceptor/NPlusOneQueriesLoggingTest.java index 7b57f31..42db3c4 100644 --- a/src/test/java/com/yannbriancon/interceptor/NPlusOneQueriesLoggingTest.java +++ b/src/test/java/com/sipios/interceptor/NPlusOneQueriesLoggingTest.java @@ -1,13 +1,13 @@ -package com.yannbriancon.interceptor; +package com.sipios.interceptor; import ch.qos.logback.classic.Level; import ch.qos.logback.classic.Logger; import ch.qos.logback.classic.spi.LoggingEvent; import ch.qos.logback.core.Appender; -import com.yannbriancon.utils.entity.Message; -import com.yannbriancon.utils.entity.Post; -import com.yannbriancon.utils.repository.MessageRepository; -import com.yannbriancon.utils.repository.PostRepository; +import com.sipios.utils.entity.Message; +import com.sipios.utils.entity.Post; +import com.sipios.utils.repository.MessageRepository; +import com.sipios.utils.repository.PostRepository; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.runner.RunWith; diff --git a/src/test/java/com/yannbriancon/interceptor/QueryCountTest.java b/src/test/java/com/sipios/interceptor/QueryCountTest.java similarity index 85% rename from src/test/java/com/yannbriancon/interceptor/QueryCountTest.java rename to src/test/java/com/sipios/interceptor/QueryCountTest.java index 4a6fca6..2cb6e3e 100644 --- a/src/test/java/com/yannbriancon/interceptor/QueryCountTest.java +++ b/src/test/java/com/sipios/interceptor/QueryCountTest.java @@ -1,8 +1,8 @@ -package com.yannbriancon.interceptor; +package com.sipios.interceptor; -import com.yannbriancon.utils.entity.User; -import com.yannbriancon.utils.repository.MessageRepository; -import com.yannbriancon.utils.repository.UserRepository; +import com.sipios.utils.entity.User; +import com.sipios.utils.repository.MessageRepository; +import com.sipios.utils.repository.UserRepository; import org.junit.jupiter.api.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; diff --git a/src/test/java/com/yannbriancon/utils/entity/Avatar.java b/src/test/java/com/sipios/utils/entity/Avatar.java similarity index 95% rename from src/test/java/com/yannbriancon/utils/entity/Avatar.java rename to src/test/java/com/sipios/utils/entity/Avatar.java index fc03589..129627a 100644 --- a/src/test/java/com/yannbriancon/utils/entity/Avatar.java +++ b/src/test/java/com/sipios/utils/entity/Avatar.java @@ -1,4 +1,4 @@ -package com.yannbriancon.utils.entity; +package com.sipios.utils.entity; import javax.persistence.Entity; import javax.persistence.FetchType; diff --git a/src/test/java/com/yannbriancon/utils/entity/Message.java b/src/test/java/com/sipios/utils/entity/Message.java similarity index 96% rename from src/test/java/com/yannbriancon/utils/entity/Message.java rename to src/test/java/com/sipios/utils/entity/Message.java index a7d5093..65de5b2 100644 --- a/src/test/java/com/yannbriancon/utils/entity/Message.java +++ b/src/test/java/com/sipios/utils/entity/Message.java @@ -1,4 +1,4 @@ -package com.yannbriancon.utils.entity; +package com.sipios.utils.entity; import javax.persistence.Column; import javax.persistence.Entity; diff --git a/src/test/java/com/yannbriancon/utils/entity/Post.java b/src/test/java/com/sipios/utils/entity/Post.java similarity index 95% rename from src/test/java/com/yannbriancon/utils/entity/Post.java rename to src/test/java/com/sipios/utils/entity/Post.java index d931d91..761272c 100644 --- a/src/test/java/com/yannbriancon/utils/entity/Post.java +++ b/src/test/java/com/sipios/utils/entity/Post.java @@ -1,4 +1,4 @@ -package com.yannbriancon.utils.entity; +package com.sipios.utils.entity; import javax.persistence.Entity; import javax.persistence.GeneratedValue; diff --git a/src/test/java/com/yannbriancon/utils/entity/User.java b/src/test/java/com/sipios/utils/entity/User.java similarity index 95% rename from src/test/java/com/yannbriancon/utils/entity/User.java rename to src/test/java/com/sipios/utils/entity/User.java index 2f9226b..7b2d06a 100644 --- a/src/test/java/com/yannbriancon/utils/entity/User.java +++ b/src/test/java/com/sipios/utils/entity/User.java @@ -1,4 +1,4 @@ -package com.yannbriancon.utils.entity; +package com.sipios.utils.entity; import javax.persistence.Column; import javax.persistence.Entity; diff --git a/src/test/java/com/yannbriancon/utils/repository/AvatarRepository.java b/src/test/java/com/sipios/utils/repository/AvatarRepository.java similarity index 69% rename from src/test/java/com/yannbriancon/utils/repository/AvatarRepository.java rename to src/test/java/com/sipios/utils/repository/AvatarRepository.java index e76f2db..51740f9 100644 --- a/src/test/java/com/yannbriancon/utils/repository/AvatarRepository.java +++ b/src/test/java/com/sipios/utils/repository/AvatarRepository.java @@ -1,6 +1,6 @@ -package com.yannbriancon.utils.repository; +package com.sipios.utils.repository; -import com.yannbriancon.utils.entity.Avatar; +import com.sipios.utils.entity.Avatar; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; diff --git a/src/test/java/com/yannbriancon/utils/repository/MessageRepository.java b/src/test/java/com/sipios/utils/repository/MessageRepository.java similarity index 80% rename from src/test/java/com/yannbriancon/utils/repository/MessageRepository.java rename to src/test/java/com/sipios/utils/repository/MessageRepository.java index 580639f..0593121 100644 --- a/src/test/java/com/yannbriancon/utils/repository/MessageRepository.java +++ b/src/test/java/com/sipios/utils/repository/MessageRepository.java @@ -1,6 +1,6 @@ -package com.yannbriancon.utils.repository; +package com.sipios.utils.repository; -import com.yannbriancon.utils.entity.Message; +import com.sipios.utils.entity.Message; import org.springframework.data.jpa.repository.EntityGraph; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; diff --git a/src/test/java/com/yannbriancon/utils/repository/PostRepository.java b/src/test/java/com/sipios/utils/repository/PostRepository.java similarity index 69% rename from src/test/java/com/yannbriancon/utils/repository/PostRepository.java rename to src/test/java/com/sipios/utils/repository/PostRepository.java index e48d3b8..7ae7ec4 100644 --- a/src/test/java/com/yannbriancon/utils/repository/PostRepository.java +++ b/src/test/java/com/sipios/utils/repository/PostRepository.java @@ -1,6 +1,6 @@ -package com.yannbriancon.utils.repository; +package com.sipios.utils.repository; -import com.yannbriancon.utils.entity.Post; +import com.sipios.utils.entity.Post; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; diff --git a/src/test/java/com/yannbriancon/utils/repository/UserRepository.java b/src/test/java/com/sipios/utils/repository/UserRepository.java similarity index 69% rename from src/test/java/com/yannbriancon/utils/repository/UserRepository.java rename to src/test/java/com/sipios/utils/repository/UserRepository.java index 1223bf1..aeb7252 100644 --- a/src/test/java/com/yannbriancon/utils/repository/UserRepository.java +++ b/src/test/java/com/sipios/utils/repository/UserRepository.java @@ -1,6 +1,6 @@ -package com.yannbriancon.utils.repository; +package com.sipios.utils.repository; -import com.yannbriancon.utils.entity.User; +import com.sipios.utils.entity.User; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; From 9f29247490ab5c3884fefac887d64dfa3f799103 Mon Sep 17 00:00:00 2001 From: Shoun ICHIDA Date: Tue, 11 Oct 2022 14:53:54 +0200 Subject: [PATCH 3/3] Fixing typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e92637c..37a19a8 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ Add the dependency to your project inside your `pom.xml` file with the right ver ```xml - com.sipioscom.sipios + com.sipios spring-hibernate-query-utils X.X.X