{
if (column instanceof ColumnPairElement)
{
if (!getAssociatedColumns().isEmpty())
{
throw new ModelException(I18NHelper.getMessage(getMessages(),
"mapping.column.associated_columns_defined", // NOI18N
NameUtil.getRelativeMemberName(
column.getName().getFullName())));
}
super.addColumn(column);
}
else
{
throw new ModelException(I18NHelper.getMessage(getMessages(),
"mapping.column.column_invalid", // NOI18N
NameUtil.getRelativeMemberName(
column.getName().getFullName())));
}
}