HHH-5932 Add test case.

This commit is contained in:
Etienne Miret 2014-08-29 21:22:26 +02:00 committed by Steve Ebersole
parent c2ece0108e
commit f52b841c5c
1 changed files with 12 additions and 0 deletions

View File

@ -33,7 +33,9 @@ import org.hibernate.engine.spi.SessionImplementor;
import org.hibernate.persister.collection.CollectionPersister;
import org.hibernate.transform.DistinctRootEntityResultTransformer;
import org.hibernate.testing.FailureExpected;
import org.hibernate.testing.SkipForDialect;
import org.hibernate.testing.TestForIssue;
import org.hibernate.testing.junit4.BaseNonConfigCoreFunctionalTestCase;
import org.junit.Test;
@ -458,6 +460,16 @@ public class DynamicFilterTest extends BaseNonConfigCoreFunctionalTestCase {
testData.release();
}
@Test
@TestForIssue( jiraKey = "HHH-5932" )
@FailureExpected( jiraKey = "HHH-5932" )
public void testHqlQueryWithColons() {
final Session session = openSession();
session.enableFilter( "region" ).setParameter( "region", "PACA" );
session.createQuery( "from Salesperson p where p.name = ':hibernate'" ).list();
session.close();
}
@Test
public void testFilterApplicationOnHqlQueryWithImplicitSubqueryContainingPositionalParameter() {
TestData testData = new TestData();