package uk.ac.ebi.quickgo.annotation.common;

import org.apache.solr.client.solrj.beans.Field;
import uk.ac.ebi.quickgo.common.QuickGODocument;

import java.util.Date;
import java.util.List;

/**
 * Solr document class defining all fields within the annotation core.
 *
 * Created 14/04/16
 * @author Edd
 */
public class AnnotationDocument implements QuickGODocument {

    @Field(AnnotationFields.ID)
    public String id;

    @Field(AnnotationFields.GENE_PRODUCT_ID)
    public String geneProductId;

    @Field(AnnotationFields.QUALIFIER)
    public String qualifier;

    @Field(AnnotationFields.SYMBOL)
    public String symbol;

    @Field(AnnotationFields.GENE_PRODUCT_TYPE)
    public String geneProductType;

    @Field(AnnotationFields.GENE_PRODUCT_SUBSET)
    public String geneProductSubset;

    @Field(AnnotationFields.TAXON_ID)
    public int taxonId;

    @Field(AnnotationFields.TAXON_ANCESTORS)
    public List<Integer> taxonAncestors;

    @Field(AnnotationFields.GO_ID)
    public String goId;

    @Field(AnnotationFields.GO_EVIDENCE)
    public String goEvidence;

    @Field(AnnotationFields.EVIDENCE_CODE)
    public String evidenceCode;

    @Field(AnnotationFields.REFERENCE)
    public String reference;

    @Field(AnnotationFields.WITH_FROM)
    public List<String> withFrom;

    @Field(AnnotationFields.INTERACTING_TAXON_ID)
    public int interactingTaxonId;

    @Field(AnnotationFields.ASSIGNED_BY)
    public String assignedBy;

    //todo there is a mis-match here between singular and plural that is confusing - it would be nice ot fix this
    @Field(AnnotationFields.EXTENSION) public List<String> extensions;

    @Field(AnnotationFields.TARGET_SET)
    public List<String> targetSets;

    @Field(AnnotationFields.GO_ASPECT)
    public String goAspect;

    @Field(AnnotationFields.DATE)
    public Date date;


    @Override public String getUniqueName() {
        return id;
    }
}

@@ -43,57 +43,8 @@
 n;%0A%0A
-import org.apache.solr.client.solrj.beans.Field;%0A
 impo
@@ -134,16 +134,65 @@
 il.List;
+%0Aimport org.apache.solr.client.solrj.beans.Field;
 %0A%0A/**%0A *
@@ -1463,122 +1463,8 @@
 y;%0A%0A
-    //todo there is a mis-match here between singular and plural that is confusing - it would be nice ot fix this%0A
     

Remove todo - deal with mis-match here between singular and plural annotation extensions as a new jira.