From f52b841c5c90db77b703713e7ec46d87646cce2d Mon Sep 17 00:00:00 2001 From: Etienne Miret Date: Fri, 29 Aug 2014 21:22:26 +0200 Subject: [PATCH] HHH-5932 Add test case. --- .../org/hibernate/test/filter/DynamicFilterTest.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hibernate-core/src/test/java/org/hibernate/test/filter/DynamicFilterTest.java b/hibernate-core/src/test/java/org/hibernate/test/filter/DynamicFilterTest.java index c6619b781d..c280c9ff1d 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/filter/DynamicFilterTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/filter/DynamicFilterTest.java @@ -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();