From d60c0cb5134d53f31bda8b042046fcda001fd1bf Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Thu, 23 Mar 2017 07:59:54 +0100 Subject: [PATCH] DATAJPA-1064 - Fixed spelling in Querydsl types. --- ...torySupport.java => QuerydslRepositorySupport.java} | 6 +++--- .../QueryDslRepositorySupportIntegrationTests.java | 10 +++++----- .../support/QueryDslRepositorySupportTests.java | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) rename src/main/java/org/springframework/data/jpa/repository/support/{QueryDslRepositorySupport.java => QuerydslRepositorySupport.java} (95%) diff --git a/src/main/java/org/springframework/data/jpa/repository/support/QueryDslRepositorySupport.java b/src/main/java/org/springframework/data/jpa/repository/support/QuerydslRepositorySupport.java similarity index 95% rename from src/main/java/org/springframework/data/jpa/repository/support/QueryDslRepositorySupport.java rename to src/main/java/org/springframework/data/jpa/repository/support/QuerydslRepositorySupport.java index 294a117ad..dfecce34e 100644 --- a/src/main/java/org/springframework/data/jpa/repository/support/QueryDslRepositorySupport.java +++ b/src/main/java/org/springframework/data/jpa/repository/support/QuerydslRepositorySupport.java @@ -38,7 +38,7 @@ import com.querydsl.jpa.impl.JPAUpdateClause; * @author Mark Paluch */ @Repository -public abstract class QueryDslRepositorySupport { +public abstract class QuerydslRepositorySupport { private final PathBuilder builder; @@ -46,11 +46,11 @@ public abstract class QueryDslRepositorySupport { private Querydsl querydsl; /** - * Creates a new {@link QueryDslRepositorySupport} instance for the given domain type. + * Creates a new {@link QuerydslRepositorySupport} instance for the given domain type. * * @param domainClass must not be {@literal null}. */ - public QueryDslRepositorySupport(Class domainClass) { + public QuerydslRepositorySupport(Class domainClass) { Assert.notNull(domainClass, "Domain class must not be null!"); this.builder = new PathBuilderFactory().create(domainClass); diff --git a/src/test/java/org/springframework/data/jpa/repository/support/QueryDslRepositorySupportIntegrationTests.java b/src/test/java/org/springframework/data/jpa/repository/support/QueryDslRepositorySupportIntegrationTests.java index 38e2ef44c..ddc077a8c 100644 --- a/src/test/java/org/springframework/data/jpa/repository/support/QueryDslRepositorySupportIntegrationTests.java +++ b/src/test/java/org/springframework/data/jpa/repository/support/QueryDslRepositorySupportIntegrationTests.java @@ -28,8 +28,8 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.data.jpa.domain.sample.User; import org.springframework.data.jpa.repository.config.InfrastructureConfig; -import org.springframework.data.jpa.repository.support.QueryDslRepositorySupportTests.UserRepository; -import org.springframework.data.jpa.repository.support.QueryDslRepositorySupportTests.UserRepositoryImpl; +import org.springframework.data.jpa.repository.support.QueryDslRepositorySupportTests.QuerydslRepositorySupport; +import org.springframework.data.jpa.repository.support.QueryDslRepositorySupportTests.QuerydslRepositorySupport; import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; @@ -37,7 +37,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement; import org.springframework.transaction.annotation.Transactional; /** - * Integration test for the setup of beans extending {@link QueryDslRepositorySupport}. + * Integration test for the setup of beans extending {@link QuerydslRepositorySupport}. * * @author Oliver Gierke * @author Thomas Darimont @@ -45,7 +45,7 @@ import org.springframework.transaction.annotation.Transactional; @Transactional @ContextConfiguration @RunWith(SpringJUnit4ClassRunner.class) -public class QueryDslRepositorySupportIntegrationTests { +public class QuerydslRepositorySupportIntegrationTests { @Configuration @EnableTransactionManagement @@ -98,7 +98,7 @@ public class QueryDslRepositorySupportIntegrationTests { assertThat(reconfiguredRepo.getEntityManager().getEntityManagerFactory(), is(em.getEntityManagerFactory())); } - static class ReconfiguringUserRepositoryImpl extends QueryDslRepositorySupport { + static class ReconfiguringUserRepositoryImpl extends QuerydslRepositorySupport { public ReconfiguringUserRepositoryImpl() { super(User.class); diff --git a/src/test/java/org/springframework/data/jpa/repository/support/QueryDslRepositorySupportTests.java b/src/test/java/org/springframework/data/jpa/repository/support/QueryDslRepositorySupportTests.java index fb35be54f..bec86746e 100644 --- a/src/test/java/org/springframework/data/jpa/repository/support/QueryDslRepositorySupportTests.java +++ b/src/test/java/org/springframework/data/jpa/repository/support/QueryDslRepositorySupportTests.java @@ -33,7 +33,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.transaction.annotation.Transactional; /** - * Integration test for {@link QueryDslRepositorySupport}. + * Integration test for {@link QuerydslRepositorySupport}. * * @author Oliver Gierke * @author Thomas Darimont @@ -41,7 +41,7 @@ import org.springframework.transaction.annotation.Transactional; @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration({ "classpath:infrastructure.xml" }) @Transactional -public class QueryDslRepositorySupportTests { +public class QuerydslRepositorySupportTests { @PersistenceContext EntityManager em; @@ -123,7 +123,7 @@ public class QueryDslRepositorySupportTests { long deleteAllWithLastname(String lastname); } - static class UserRepositoryImpl extends QueryDslRepositorySupport implements UserRepository { + static class UserRepositoryImpl extends QuerydslRepositorySupport implements UserRepository { private static final QUser user = QUser.user;