From 70af45101c287c192150cba0f95a5cc2ff7660b6 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Tue, 6 Aug 2019 15:48:11 +0200 Subject: [PATCH] DATAJPA-1372 - Polishing. Fix typo. --- ...eryByExamplePredicateBuilderUnitTests.java | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/test/java/org/springframework/data/jpa/convert/QueryByExamplePredicateBuilderUnitTests.java b/src/test/java/org/springframework/data/jpa/convert/QueryByExamplePredicateBuilderUnitTests.java index 20c624ebf..5fe8f8c4b 100644 --- a/src/test/java/org/springframework/data/jpa/convert/QueryByExamplePredicateBuilderUnitTests.java +++ b/src/test/java/org/springframework/data/jpa/convert/QueryByExamplePredicateBuilderUnitTests.java @@ -27,7 +27,6 @@ import java.util.Set; import javax.persistence.Id; import javax.persistence.criteria.CriteriaBuilder; import javax.persistence.criteria.Expression; -import javax.persistence.criteria.From; import javax.persistence.criteria.Join; import javax.persistence.criteria.Path; import javax.persistence.criteria.Predicate; @@ -90,19 +89,19 @@ public class QueryByExamplePredicateBuilderUnitTests { @Before public void setUp() { - personIdAttribute = new SingluarAttributeStub<>("id", PersistentAttributeType.BASIC, Long.class); - personFirstnameAttribute = new SingluarAttributeStub<>("firstname", PersistentAttributeType.BASIC, + personIdAttribute = new SingularAttributeStub<>("id", PersistentAttributeType.BASIC, Long.class); + personFirstnameAttribute = new SingularAttributeStub<>("firstname", PersistentAttributeType.BASIC, String.class); - personAgeAttribute = new SingluarAttributeStub<>("age", PersistentAttributeType.BASIC, Long.class); - personFatherAttribute = new SingluarAttributeStub<>("father", PersistentAttributeType.MANY_TO_ONE, + personAgeAttribute = new SingularAttributeStub<>("age", PersistentAttributeType.BASIC, Long.class); + personFatherAttribute = new SingularAttributeStub<>("father", PersistentAttributeType.MANY_TO_ONE, Person.class, personEntityType); - personSkillAttribute = new SingluarAttributeStub<>("skill", PersistentAttributeType.EMBEDDED, + personSkillAttribute = new SingularAttributeStub<>("skill", PersistentAttributeType.EMBEDDED, Skill.class, skillEntityType); - personAddressAttribute = new SingluarAttributeStub<>("address", PersistentAttributeType.EMBEDDED, + personAddressAttribute = new SingularAttributeStub<>("address", PersistentAttributeType.EMBEDDED, Address.class); - skillNameAttribute = new SingluarAttributeStub<>("name", PersistentAttributeType.BASIC, + skillNameAttribute = new SingularAttributeStub<>("name", PersistentAttributeType.BASIC, String.class); - skillNestedAttribute = new SingluarAttributeStub<>("nested", PersistentAttributeType.MANY_TO_ONE, + skillNestedAttribute = new SingularAttributeStub<>("nested", PersistentAttributeType.MANY_TO_ONE, Skill.class, skillEntityType); personEntityAttribtues = new LinkedHashSet<>(); @@ -298,19 +297,19 @@ public class QueryByExamplePredicateBuilderUnitTests { Skill nested; } - static class SingluarAttributeStub implements SingularAttribute { + static class SingularAttributeStub implements SingularAttribute { private String name; private PersistentAttributeType attributeType; private Class javaType; private Type type; - public SingluarAttributeStub(String name, + public SingularAttributeStub(String name, javax.persistence.metamodel.Attribute.PersistentAttributeType attributeType, Class javaType) { this(name, attributeType, javaType, null); } - public SingluarAttributeStub(String name, + public SingularAttributeStub(String name, javax.persistence.metamodel.Attribute.PersistentAttributeType attributeType, Class javaType, Type type) { this.name = name; this.attributeType = attributeType;