package net.straininfo2.grs.idloader.bioproject.domain;

import javax.persistence.*;

/**
 * Possible fields in which a project can be relevant.
 */
@Entity
public class ProjectRelevance {

    private long id;

    public enum RelevantField {
        AGRICULTURAL,
        MEDICAL,
        INDUSTRIAL,
        ENVIRONMENTAL,
        EVOLUTION,
        MODEL_ORGANISM,
        OTHER
    }

    private RelevantField relevantField;

    @Lob
    @Basic
    private String relevanceDescription;

    private BioProject bioProject;

    public ProjectRelevance() {

    }

    public ProjectRelevance(RelevantField field, String description) {
        this.relevantField = field;
        this.relevanceDescription = description;
    }

    @Id
    @GeneratedValue
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public RelevantField getRelevantField() {
        return relevantField;
    }

    public void setRelevantField(RelevantField relevantField) {
        this.relevantField = relevantField;
    }

    public String getRelevanceDescription() {
        return relevanceDescription;
    }

    public void setRelevanceDescription(String relevanceDescription) {
        this.relevanceDescription = relevanceDescription;
    }

    @ManyToOne(optional = false)
    public BioProject getBioProject() {
        return bioProject;
    }

    public void setBioProject(BioProject bioProject) {
        this.bioProject = bioProject;
    }
}

@@ -429,28 +429,8 @@
 d;%0A%0A
-    @Lob%0A    @Basic%0A
     
@@ -1038,32 +1038,52 @@
 ntField;%0A    %7D%0A%0A
+    @Lob%0A    @Basic%0A
     public Strin

Fix location of persistence annotations