/** Adds a column to the list of columns mapped by this mapping * relationship. This method overrides the one in MappingFieldElement to * check that the argument is a ColumnPairElement. * @param column column element to be added to the mapping * @exception ModelException if impossible */ public void addColumn (DBMemberElement column) throws ModelException { 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()))); } }
/** Adds a column to the list of columns mapped by this mapping * relationship. This method overrides the one in MappingFieldElement to * check that the argument is a ColumnPairElement. * @param column column element to be added to the mapping * @exception ModelException if impossible */ public void addColumn (DBMemberElement column) throws ModelException { 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()))); } }
column.getName().getFullName());
column.getName().getFullName());