} else if (sc.inheritance.isHorizontalMapping()) {
sc.mainTable = new SpeedoTable();
} else if (sc.inheritance.isVerticalMapping()) {
SpeedoClass parent = sc.getSuper();
if (sc.inheritance.join == null) {
sc.inheritance.join = new SpeedoJoin();
}
SpeedoJoin join = sc.inheritance.join;
if (join.mainTable == null) {
join.mainTable = getRootTable(parent);
}
if (sc.mainTable == null) {
if (join.extTable == null) {