return leftJoinCMRNodes;
}
public static final void leftJoinCMRNodes(String alias, List<LeftJoinCMRNode> onFindCMRNodes, AliasManager aliasManager, StringBuffer sb) {
for (LeftJoinCMRNode node : onFindCMRNodes) {
JDBCCMRFieldBridge cmrField = node.cmrField;
JDBCEntityBridge relatedEntity = cmrField.getRelatedJDBCEntity();
String relatedAlias = aliasManager.getAlias(node.path);
JDBCRelationMetaData relation = cmrField.getMetaData().getRelationMetaData();
if (relation.isTableMappingStyle()) {
String relTableAlias = aliasManager.getRelationTableAlias(node.path);
sb.append(" LEFT OUTER JOIN ")
.append(cmrField.getQualifiedTableName())
.append(' ')
.append(relTableAlias)
.append(" ON ");
SQLUtil.getRelationTableJoinClause(cmrField, alias, relTableAlias, sb);
sb.append(" LEFT OUTER JOIN ")
.append(relatedEntity.getQualifiedTableName())
.append(' ')
.append(relatedAlias)
.append(" ON ");
SQLUtil.getRelationTableJoinClause(cmrField.getRelatedCMRField(), relatedAlias, relTableAlias, sb);
} else {
// foreign key mapping style
sb.append(" LEFT OUTER JOIN ")
.append(relatedEntity.getQualifiedTableName())
.append(' ')