if (getMapping() != null) { setDescriptor(getMapping().getDescriptor()); if (getMapping().isDirectCollectionMapping()) { DatabaseTable refTable = ((DirectCollectionMapping)getMapping()).getReferenceTable(); DatabaseTable histTable = (DatabaseTable)getHistoricalTables().elementAt(0); histTable.setName(refTable.getName()); getStart().setTable(histTable); getEnd().setTable(histTable); } else if (getMapping().isManyToManyMapping()) { DatabaseTable relationTable = ((ManyToManyMapping)getMapping()).getRelationTable(); DatabaseTable histTable = (DatabaseTable)getHistoricalTables().elementAt(0); histTable.setName(relationTable.getName());
if (getMapping() != null) { setDescriptor(getMapping().getDescriptor()); if (getMapping().isDirectCollectionMapping()) { DatabaseTable refTable = ((DirectCollectionMapping)getMapping()).getReferenceTable(); DatabaseTable histTable = getHistoricalTables().get(0); histTable.setName(refTable.getName()); getStart().setTable(histTable); getEnd().setTable(histTable); } else if (getMapping().isManyToManyMapping()) { DatabaseTable relationTable = ((ManyToManyMapping)getMapping()).getRelationTable(); DatabaseTable histTable = getHistoricalTables().get(0); histTable.setName(relationTable.getName());
if (getMapping() != null) { setDescriptor(getMapping().getDescriptor()); if (getMapping().isDirectCollectionMapping()) { DatabaseTable refTable = ((DirectCollectionMapping)getMapping()).getReferenceTable(); DatabaseTable histTable = getHistoricalTables().get(0); histTable.setName(refTable.getName()); getStart().setTable(histTable); getEnd().setTable(histTable); } else if (getMapping().isManyToManyMapping()) { DatabaseTable relationTable = ((ManyToManyMapping)getMapping()).getRelationTable(); DatabaseTable histTable = getHistoricalTables().get(0); histTable.setName(relationTable.getName());
if (getMapping() != null) { if (tableIndex != null && tableIndex.intValue() > 0) { return null;
if (getMapping() != null) { if (tableIndex != null && tableIndex.intValue() > 0) { return null;
if (getMapping() != null) { TableExpression tableExp = null; DatabaseTable historicalTable = (DatabaseTable)getHistoricalTables().elementAt(0);