HHH-3032 Sybase restriction of using alias in sub-query

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@20713 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Strong Liu 2010-09-26 18:10:52 +00:00
parent 685ddb254e
commit b21ae56c67
1 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,7 @@ import javax.persistence.criteria.Join;
import javax.persistence.criteria.Root;
import javax.persistence.criteria.Subquery;
import org.hibernate.dialect.SybaseASE15Dialect;
import org.hibernate.ejb.metamodel.AbstractMetamodelSpecificTest;
import org.hibernate.ejb.metamodel.Customer;
import org.hibernate.ejb.metamodel.Customer_;
@ -39,6 +40,7 @@ import org.hibernate.ejb.metamodel.LineItem;
import org.hibernate.ejb.metamodel.LineItem_;
import org.hibernate.ejb.metamodel.Order;
import org.hibernate.ejb.metamodel.Order_;
import org.hibernate.testing.junit.SkipForDialect;
/**
* TODO : javadoc
@ -86,6 +88,7 @@ public class CorrelatedSubqueryTest extends AbstractMetamodelSpecificTest {
em.close();
}
@SkipForDialect(value=SybaseASE15Dialect.class, jiraKey="HHH-3032")
public void testCorrelationExplicitSelectionCorrelation() {
CriteriaBuilder builder = factory.getCriteriaBuilder();
EntityManager em = getOrCreateEntityManager();