/* 764 */ return buf;
/* */ }
/* */
/* */ public static StringBuffer getJoinClause(JDBCAbstractCMRFieldBridge cmrField, String parentAlias, String childAlias, StringBuffer buf)
/* */ {
/* 779 */ JDBCAbstractEntityBridge parentEntity = cmrField.getEntity();
/* 780 */ JDBCAbstractEntityBridge childEntity = (JDBCAbstractEntityBridge)cmrField.getRelatedEntity();
/* */
/* 785 */ if (cmrField.hasForeignKey())
/* */ {
/* 788 */ JDBCFieldBridge[] parentFkFields = cmrField.getForeignKeyFields();
/* 789 */ int i = 0;
/* 790 */ while (i < parentFkFields.length)
/* */ {
/* 792 */ JDBCFieldBridge parentField = parentFkFields[(i++)];
/* 793 */ JDBCFieldBridge childField = (JDBCFieldBridge)childEntity.getFieldByName(parentField.getFieldName());
/* 794 */ getJoinClause(parentField, parentAlias, childField, childAlias, buf);
/* 795 */ if (i < parentFkFields.length) {
/* 796 */ buf.append(" AND ");
/* */ }
/* */ }