HHH-9092 QueryBuilderTest.testMultiselectWithPredicates failing on most

databases
This commit is contained in:
Brett Meyer 2014-03-31 10:26:52 -04:00
parent 601a293c0e
commit 1af0615f17
1 changed files with 5 additions and 1 deletions

View File

@ -35,6 +35,7 @@ import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Root; import javax.persistence.criteria.Root;
import javax.persistence.metamodel.EntityType; import javax.persistence.metamodel.EntityType;
import org.hibernate.dialect.H2Dialect;
import org.hibernate.ejb.criteria.predicate.ComparisonPredicate; import org.hibernate.ejb.criteria.predicate.ComparisonPredicate;
import org.hibernate.ejb.metamodel.Address; import org.hibernate.ejb.metamodel.Address;
import org.hibernate.ejb.metamodel.Alias; 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.Spouse;
import org.hibernate.ejb.metamodel.Customer_; import org.hibernate.ejb.metamodel.Customer_;
import org.hibernate.ejb.test.BaseEntityManagerFunctionalTestCase; import org.hibernate.ejb.test.BaseEntityManagerFunctionalTestCase;
import org.hibernate.testing.RequiresDialect;
import org.hibernate.testing.TestForIssue; import org.hibernate.testing.TestForIssue;
import org.junit.Test; import org.junit.Test;
@ -215,7 +217,9 @@ public class QueryBuilderTest extends BaseEntityManagerFunctionalTestCase {
} }
@Test @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() { public void testMultiselectWithPredicates() {
EntityManager em = getOrCreateEntityManager(); EntityManager em = getOrCreateEntityManager();
em.getTransaction().begin(); em.getTransaction().begin();