mrefEntity.setDescription("Link table for many-to-many relationship '"
+ xref_entity_from.getName() + "." + xref_field_from.getName() + "'.");
mrefEntity.setSystem(true);
// create id field to ensure ordering
Field idField = new Field(mrefEntity, new IntField(), "autoid", "autoid", true, false, false,
null);
idField.setHidden(true);
idField.setDescription("automatic id field to ensure ordering of mrefs");
mrefEntity.addField(idField);
mrefEntity.addKey(idField.getName(), "unique auto key to ensure ordering of mrefs");