@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")); }
@Test public void searchWhereClauseWithoutDot() { assertEquals( "((lower(str(this.foo)) like :search))", HqlUtils.getSearchWhereClause("this", "search", "foo")); }