org.molgenis.omx.xgap.ProteinMetaData Maven / Gradle / Ivy
/* File: /tmp/molgenis/target/checkout/molgenis-omx-das/target/generated-sources/molgenis/java/org/molgenis/omx/xgap/ProteinMetaData.java
* Generator: org.molgenis.generators.EntityMetaDataGen 4.0.0-testing
*
* THIS FILE HAS BEEN GENERATED, PLEASE DO NOT EDIT!
*/
package org.molgenis.omx.xgap;
import static org.molgenis.MolgenisFieldTypes.FieldTypeEnum.*;
import org.molgenis.data.support.DefaultEntityMetaData;
import org.molgenis.data.support.DefaultAttributeMetaData;
public class ProteinMetaData extends DefaultEntityMetaData
{
public ProteinMetaData()
{
super("Protein", Protein.class);
setLabel("Protein");
setDescription(" Trait annotations specific for proteins.");
DefaultAttributeMetaData id = new DefaultAttributeMetaData("id", INT);
id.setLabel("id");
id.setDescription("automatically generated internal id, only for internal use.");
id.setIdAttribute(true);
id.setNillable(false);
id.setReadOnly(true);
id.setUnique(false);
id.setAuto(true);
id.setVisible(false);
id.setAggregateable(false);
addAttributeMetaData(id);
DefaultAttributeMetaData identifier = new DefaultAttributeMetaData("Identifier", STRING);
identifier.setLabel("Identifier");
identifier.setDescription("user supplied or automatically assigned (using a decorator) unique and short identifier, e.g. MA1234");
identifier.setIdAttribute(false);
identifier.setNillable(false);
identifier.setReadOnly(false);
identifier.setUnique(true);
identifier.setAuto(false);
identifier.setLabelAttribute(true);
identifier.setLookupAttribute(true);
identifier.setAggregateable(false);
addAttributeMetaData(identifier);
DefaultAttributeMetaData name = new DefaultAttributeMetaData("Name", STRING);
name.setLabel("Name");
name.setDescription("human readible name, not necessary unique.");
name.setIdAttribute(false);
name.setNillable(false);
name.setReadOnly(false);
name.setUnique(false);
name.setAuto(false);
name.setLookupAttribute(true);
name.setAggregateable(false);
addAttributeMetaData(name);
DefaultAttributeMetaData __Type = new DefaultAttributeMetaData("__Type", ENUM);
__Type.setLabel("__Type");
__Type.setDescription("Subtypes have to be set to allow searching");
__Type.setIdAttribute(false);
__Type.setNillable(false);
__Type.setReadOnly(true);
__Type.setUnique(false);
__Type.setAuto(true);
__Type.setVisible(false);
__Type.setAggregateable(false);
addAttributeMetaData(__Type);
DefaultAttributeMetaData description = new DefaultAttributeMetaData("description", TEXT);
description.setLabel("description");
description.setDescription("(Optional) Rudimentary meta data about the observable feature. Use of ontology terms references to establish unambigious descriptions is recommended");
description.setIdAttribute(false);
description.setNillable(true);
description.setReadOnly(false);
description.setUnique(false);
description.setAuto(false);
description.setLookupAttribute(true);
description.setAggregateable(false);
addAttributeMetaData(description);
DefaultAttributeMetaData gene = new DefaultAttributeMetaData("Gene", XREF);
gene.setLabel("Gene");
gene.setDescription("The gene that produces this protein");
gene.setIdAttribute(false);
gene.setNillable(true);
gene.setReadOnly(false);
gene.setUnique(false);
gene.setAuto(false);
gene.setRefEntity(new org.molgenis.omx.xgap.GeneMetaData());
gene.setAggregateable(true);
addAttributeMetaData(gene);
DefaultAttributeMetaData transcript = new DefaultAttributeMetaData("Transcript", XREF);
transcript.setLabel("Transcript");
transcript.setDescription("The transcript variant that produces this protein");
transcript.setIdAttribute(false);
transcript.setNillable(true);
transcript.setReadOnly(false);
transcript.setUnique(false);
transcript.setAuto(false);
transcript.setRefEntity(new org.molgenis.omx.xgap.TranscriptMetaData());
transcript.setAggregateable(true);
addAttributeMetaData(transcript);
DefaultAttributeMetaData aminoSequence = new DefaultAttributeMetaData("AminoSequence", TEXT);
aminoSequence.setLabel("Sequence");
aminoSequence.setDescription("The aminoacid sequence.");
aminoSequence.setIdAttribute(false);
aminoSequence.setNillable(true);
aminoSequence.setReadOnly(false);
aminoSequence.setUnique(false);
aminoSequence.setAuto(false);
aminoSequence.setAggregateable(false);
addAttributeMetaData(aminoSequence);
DefaultAttributeMetaData mass = new DefaultAttributeMetaData("Mass", DECIMAL);
mass.setLabel("Mass");
mass.setDescription("The mass of this metabolite");
mass.setIdAttribute(false);
mass.setNillable(true);
mass.setReadOnly(false);
mass.setUnique(false);
mass.setAuto(false);
mass.setAggregateable(false);
addAttributeMetaData(mass);
}
}