protected QueryObjectModel createQuery(Ordering[] orderings) throws RepositoryException { JoinCondition c = qf.equiJoinCondition(LEFT, propertyName1, RIGHT, propertyName2); QueryObjectModel qom = createQuery(QueryObjectModelConstants.JCR_JOIN_TYPE_INNER, c); return qf.createQuery(qom.getSource(), qom.getConstraint(), orderings, qom.getColumns()); }