/* 817 */ return buf;
/* */ }
/* */
/* */ public static StringBuffer getRelationTableJoinClause(JDBCAbstractCMRFieldBridge cmrField, String parentAlias, String relationTableAlias, StringBuffer buf)
/* */ {
/* 825 */ JDBCAbstractEntityBridge parentEntity = cmrField.getEntity();
/* */
/* 830 */ JDBCFieldBridge[] parentFields = cmrField.getTableKeyFields();
/* 831 */ int i = 0;
/* 832 */ while (i < parentFields.length)
/* */ {
/* 834 */ JDBCFieldBridge relationField = parentFields[(i++)];
/* 835 */ JDBCFieldBridge parentField = (JDBCFieldBridge)parentEntity.getFieldByName(relationField.getFieldName());
/* 836 */ getJoinClause(parentField, parentAlias, relationField, relationTableAlias, buf);
/* 837 */ if (i < parentFields.length)
/* 838 */ buf.append(" AND ");
/* */ }
/* 840 */ return buf;