Search in sources :

Example 1 with SystemAttribute

use of org.molgenis.data.meta.system.SystemAttribute in project molgenis by molgenis.

the class SystemEntityType method addAttribute.

public Attribute addAttribute(String attrName, AttributeRole... attrTypes) {
    Attribute attr = new SystemAttribute(attributeFactory.getAttributeMetadata());
    attr.setIdentifier(idGenerator.generateId());
    attr.setDefaultValues();
    attr.setName(attrName);
    addAttribute(attr, attrTypes);
    return attr;
}
Also used : SystemAttribute(org.molgenis.data.meta.system.SystemAttribute) Attribute(org.molgenis.data.meta.model.Attribute) SystemAttribute(org.molgenis.data.meta.system.SystemAttribute)

Aggregations

Attribute (org.molgenis.data.meta.model.Attribute)1 SystemAttribute (org.molgenis.data.meta.system.SystemAttribute)1