org.molgenis.omx.patient.PatientMetaData Maven / Gradle / Ivy
/* File: /tmp/molgenis/target/checkout/molgenis-omx-das/target/generated-sources/molgenis/java/org/molgenis/omx/patient/PatientMetaData.java
* Generator: org.molgenis.generators.EntityMetaDataGen 4.0.0-testing
*
* THIS FILE HAS BEEN GENERATED, PLEASE DO NOT EDIT!
*/
package org.molgenis.omx.patient;
import static org.molgenis.MolgenisFieldTypes.FieldTypeEnum.*;
import org.molgenis.data.support.DefaultEntityMetaData;
import org.molgenis.data.support.DefaultAttributeMetaData;
public class PatientMetaData extends DefaultEntityMetaData
{
public PatientMetaData()
{
super("Patient", Patient.class);
setLabel("Patient");
setDescription("");
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 mother = new DefaultAttributeMetaData("Mother", XREF);
mother.setLabel("Mother");
mother.setDescription("Refers to the mother of the individual.");
mother.setIdAttribute(false);
mother.setNillable(true);
mother.setReadOnly(false);
mother.setUnique(false);
mother.setAuto(false);
mother.setRefEntity(new org.molgenis.omx.observ.target.IndividualMetaData());
mother.setAggregateable(true);
addAttributeMetaData(mother);
DefaultAttributeMetaData father = new DefaultAttributeMetaData("Father", XREF);
father.setLabel("Father");
father.setDescription("Refers to the father of the individual.");
father.setIdAttribute(false);
father.setNillable(true);
father.setReadOnly(false);
father.setUnique(false);
father.setAuto(false);
father.setRefEntity(new org.molgenis.omx.observ.target.IndividualMetaData());
father.setAggregateable(true);
addAttributeMetaData(father);
DefaultAttributeMetaData allele1 = new DefaultAttributeMetaData("Allele1", XREF);
allele1.setLabel("Allele1");
allele1.setDescription("");
allele1.setIdAttribute(false);
allele1.setNillable(true);
allele1.setReadOnly(false);
allele1.setUnique(false);
allele1.setAuto(false);
allele1.setRefEntity(new org.molgenis.omx.xgap.VariantMetaData());
allele1.setAggregateable(true);
addAttributeMetaData(allele1);
DefaultAttributeMetaData allele2 = new DefaultAttributeMetaData("Allele2", XREF);
allele2.setLabel("Allele2");
allele2.setDescription("");
allele2.setIdAttribute(false);
allele2.setNillable(true);
allele2.setReadOnly(false);
allele2.setUnique(false);
allele2.setAuto(false);
allele2.setRefEntity(new org.molgenis.omx.xgap.VariantMetaData());
allele2.setAggregateable(true);
addAttributeMetaData(allele2);
DefaultAttributeMetaData pheno = new DefaultAttributeMetaData("Pheno", STRING);
pheno.setLabel("Pheno");
pheno.setDescription("");
pheno.setIdAttribute(false);
pheno.setNillable(true);
pheno.setReadOnly(false);
pheno.setUnique(false);
pheno.setAuto(false);
pheno.setAggregateable(false);
addAttributeMetaData(pheno);
DefaultAttributeMetaData pubMedID = new DefaultAttributeMetaData("PubMedID", STRING);
pubMedID.setLabel("PubMedID");
pubMedID.setDescription("");
pubMedID.setIdAttribute(false);
pubMedID.setNillable(true);
pubMedID.setReadOnly(false);
pubMedID.setUnique(false);
pubMedID.setAuto(false);
pubMedID.setAggregateable(false);
addAttributeMetaData(pubMedID);
DefaultAttributeMetaData reference = new DefaultAttributeMetaData("Reference", STRING);
reference.setLabel("Reference");
reference.setDescription("");
reference.setIdAttribute(false);
reference.setNillable(true);
reference.setReadOnly(false);
reference.setUnique(false);
reference.setAuto(false);
reference.setAggregateable(false);
addAttributeMetaData(reference);
}
}