Example #1
0
 @Test
 public void searchWhereClauseWith2Dots() {
   assertEquals(
       "((foo_bar is not null and lower(str(foo_bar.baz)) like :search))",
       HqlUtils.getSearchWhereClause("this", "search", "foo.bar.baz"));
 }
Example #2
0
 @Test
 public void searchWhereClauseWithoutDot() {
   assertEquals(
       "((lower(str(this.foo)) like :search))",
       HqlUtils.getSearchWhereClause("this", "search", "foo"));
 }