Example (You can add this test in SimpleQueriesTest): {code} @Test public void testParametricLikeQueries() throws Exception { List<?> result = session .createQuery( "from Hypothesis h where h.description LIKE :myParam" ) .setString( "myParam", "%stuff%" ) .list(); assertThat( result ).onProperty( "id" ).containsOnly( "16" ); } {code}
This is because Neo4jQueryRednderDelegate Neo4jQueryRendererDelegate #predicateLike doesn't check if the prameterValue is a query parameter. |
|