}
public void testToStringCompositeCriterion()
{
Criterion criterion = new Criterion(
new ColumnImpl("myTable", "myColumn"),
"myValue");
Criterion innerCriterion = (new Criterion(
new ColumnImpl("myTable", "myColumn2"),
"myColumn2<abs(myValue2)",
SqlEnum.CUSTOM));
innerCriterion.and(new Criterion(
new ColumnImpl("myTable", "myColumn3"),
3,
SqlEnum.GREATER_EQUAL));
criterion.or(innerCriterion);
assertEquals("myTable.myColumn=myValue "
+ "OR (myColumn2<abs(myValue2) "