DATAJPA-78 - Upgrade to Querydsl 2.2.0.
Upgraded to Querydsl 2.2.0. Added configuration to generate query classes for AbstractPersistable and AbstractAuditable. Package those query classes into the source JAR and compile it into the binary as well. Upgraded Mysema APT plugin to 1.0.2.
This commit is contained in:
@@ -220,7 +220,7 @@ public class ParameterBinderUnitTests {
|
||||
|
||||
@Embeddable
|
||||
@SuppressWarnings("unused")
|
||||
static class SampleEmbeddable {
|
||||
public static class SampleEmbeddable {
|
||||
|
||||
private String foo;
|
||||
private String bar;
|
||||
|
||||
@@ -15,8 +15,9 @@
|
||||
*/
|
||||
package org.springframework.data.jpa.repository.support;
|
||||
|
||||
import static junit.framework.Assert.*;
|
||||
import static org.junit.Assert.*;
|
||||
import static org.mockito.Mockito.*;
|
||||
import static org.hamcrest.CoreMatchers.*;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Serializable;
|
||||
@@ -159,10 +160,16 @@ public class JpaRepositoryFactoryUnitTests {
|
||||
factory.getRepositoryBaseClass(new DefaultRepositoryMetadata(
|
||||
QueryDslSampleRepository.class)));
|
||||
|
||||
QueryDslSampleRepository repository =
|
||||
factory.getRepository(QueryDslSampleRepository.class);
|
||||
assertEquals(QueryDslJpaRepository.class,
|
||||
((Advised) repository).getTargetClass());
|
||||
try {
|
||||
QueryDslSampleRepository repository =
|
||||
factory.getRepository(QueryDslSampleRepository.class);
|
||||
assertEquals(QueryDslJpaRepository.class,
|
||||
((Advised) repository).getTargetClass());
|
||||
} catch (IllegalArgumentException e) {
|
||||
assertThat(
|
||||
e.getStackTrace()[0].getClassName(),
|
||||
is("org.springframework.data.querydsl.SimpleEntityPathResolver"));
|
||||
}
|
||||
}
|
||||
|
||||
private interface SimpleSampleRepository extends
|
||||
|
||||
@@ -40,7 +40,7 @@ public class JpaClassUtilsUnitTests {
|
||||
}
|
||||
|
||||
@Entity(name = "AnotherNamedUser")
|
||||
public static class NamedUser {
|
||||
public class NamedUser {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user