PrimaryKeyJoinColumn []joinColumnsAnn)
throws ConfigException
{
ArrayList<ForeignColumn> linkColumns = new ArrayList<ForeignColumn>();
for (AmberColumn column : primaryTable.getIdColumns()) {
ForeignColumn linkColumn;
PrimaryKeyJoinColumn joinAnn
= getJoinColumn(joinColumnsAnn, column.getName());
String name;
if (joinAnn == null)
name = column.getName();
else
name = joinAnn.name();
linkColumn = secondaryTable.createForeignColumn(name, column);
linkColumn.setPrimaryKey(true);
secondaryTable.addIdColumn(linkColumn);
linkColumns.add(linkColumn);
}