//Build JORM meta objects for the secondary (external) tables
if (sc.joinToExtTables != null) {
for (int i = 0; i < sc.joinToExtTables.length; i++) {
RdbExternalTable extTable = rcm
.createRdbExternalTable(sc.joinToExtTables[i].extTable.name);
RdbJoin join = extTable.createRdbJoin("_" + i);
if (debug) {
logger.log(BasicLevel.DEBUG, "define external table '"
+ sc.joinToExtTables[i].extTable.name
+ "' for the class '" + sc.getFQName() + "'.");
}
for (Iterator it = sc.joinToExtTables[i].columns.iterator(); it
.hasNext();) {
SpeedoJoinColumn jc = (SpeedoJoinColumn) it.next();
join.addJoinColumnNames(jc.targetColumn,
jc.column.name);
if (debug) {
logger.log(BasicLevel.DEBUG,
"\tdefine join between columns '"
+ jc.column.name + "' and '"