/** * Define the join criteria to require the two tables represent the same * node. The supplied tables must be a valid name or alias. * * @param table1 * the name or alias of the first table * @param table2 * the name or alias of the second table * @return the query builder instance, for method chaining purposes */ public QueryBuilder onSameNode(String table1, String table2) { return createJoin(new SameNodeJoinCondition(nameOf(table1), nameOf(table2))); }