From 1af0615f177d4c61da6a9ad7c5f3d656fddf41be Mon Sep 17 00:00:00 2001 From: Brett Meyer Date: Mon, 31 Mar 2014 10:26:52 -0400 Subject: [PATCH] HHH-9092 QueryBuilderTest.testMultiselectWithPredicates failing on most databases --- .../java/org/hibernate/ejb/criteria/QueryBuilderTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hibernate-entitymanager/src/test/java/org/hibernate/ejb/criteria/QueryBuilderTest.java b/hibernate-entitymanager/src/test/java/org/hibernate/ejb/criteria/QueryBuilderTest.java index 906201f03d..cbdc767c13 100644 --- a/hibernate-entitymanager/src/test/java/org/hibernate/ejb/criteria/QueryBuilderTest.java +++ b/hibernate-entitymanager/src/test/java/org/hibernate/ejb/criteria/QueryBuilderTest.java @@ -35,6 +35,7 @@ import javax.persistence.criteria.CriteriaQuery; import javax.persistence.criteria.Root; import javax.persistence.metamodel.EntityType; +import org.hibernate.dialect.H2Dialect; import org.hibernate.ejb.criteria.predicate.ComparisonPredicate; import org.hibernate.ejb.metamodel.Address; import org.hibernate.ejb.metamodel.Alias; @@ -51,6 +52,7 @@ import org.hibernate.ejb.metamodel.ShelfLife; import org.hibernate.ejb.metamodel.Spouse; import org.hibernate.ejb.metamodel.Customer_; import org.hibernate.ejb.test.BaseEntityManagerFunctionalTestCase; +import org.hibernate.testing.RequiresDialect; import org.hibernate.testing.TestForIssue; import org.junit.Test; @@ -215,7 +217,9 @@ public class QueryBuilderTest extends BaseEntityManagerFunctionalTestCase { } @Test - @TestForIssue( jiraKey = "HHH-8699" ) + @TestForIssue(jiraKey = "HHH-8699") + // For now, restrict to H2. Selecting w/ predicate functions cause issues for too many dialects. + @RequiresDialect(value = H2Dialect.class, jiraKey = "HHH-9092") public void testMultiselectWithPredicates() { EntityManager em = getOrCreateEntityManager(); em.getTransaction().begin();