From a4fdb870f2bc56ac11ec5f7e13d1e2ce8dbd2046 Mon Sep 17 00:00:00 2001 From: Vyacheslav Dimitrov Date: Mon, 6 Dec 2010 22:50:29 +0300 Subject: [PATCH] HHH-5736 Fixed tests --- .../java/org/hibernate/ejb/criteria/basic/PredicateTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hibernate-entitymanager/src/test/java/org/hibernate/ejb/criteria/basic/PredicateTest.java b/hibernate-entitymanager/src/test/java/org/hibernate/ejb/criteria/basic/PredicateTest.java index 97e89a258e..cc58d10630 100644 --- a/hibernate-entitymanager/src/test/java/org/hibernate/ejb/criteria/basic/PredicateTest.java +++ b/hibernate-entitymanager/src/test/java/org/hibernate/ejb/criteria/basic/PredicateTest.java @@ -100,7 +100,7 @@ public class PredicateTest extends AbstractMetamodelSpecificTest { orderCriteria.select(orderRoot); Predicate p1 = builder.equal(orderRoot.get("id"), 1); - Predicate p1 = builder.equal(orderRoot.get("id"), 2); + Predicate p2 = builder.equal(orderRoot.get("id"), 2); orderCriteria.where( builder.not( builder.or (p1, p2) ) ); em.createQuery( orderCriteria ).getResultList(); @@ -122,7 +122,7 @@ public class PredicateTest extends AbstractMetamodelSpecificTest { orderCriteria.select(orderRoot); Predicate p1 = builder.equal(orderRoot.get("id"), 1); - Predicate p1 = builder.equal(orderRoot.get("id"), 2); + Predicate p2 = builder.equal(orderRoot.get("id"), 2); orderCriteria.where( builder.not( builder.and (p1, p2) ) ); em.createQuery( orderCriteria ).getResultList();