открытый статический список getAddressBooleanExpressions (тип String, класс clazz) {List booleanExpressions = new ArrayList ();PathBuilder entityPath = new PathBuilder (clazz, type);BooleanExpression expression1 = entityPath.get ("column1"). Eq (entityPath.get ("column2"));BooleanExpression expression2 = entityPath.get ("columnA"). Eq (entityPath.get ("columnB"));BooleanExpression expression3 = entityPath.get ("columnX"). Eq (entityPath.get ("columnZ"));BooleanExpression expression4 = entityPath.get ("PhysicalAddress") .eq (entityPath.get ("mailingAddress"));
booleanExpressions.add (expression1);booleanExpressions.add (выражение2);booleanExpressions.add (expression3);booleanExpressions.add (expression4);return booleanExpressions;
}