package org.pdxfinder.graph.dao;

import org.neo4j.ogm.annotation.GraphId;
import org.neo4j.ogm.annotation.NodeEntity;

/*
 * Created by csaba on 08/05/2019.
 */
@NodeEntity
public class Treatment {


    @GraphId
    private Long id;

    private String name;



    public Treatment(String name) {
        this.name = name;
    }

    public Treatment() {
    }


    public Long getId() {
        return id;
    }

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

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

@@ -111,16 +111,62 @@
 eEntity;
+%0Aimport org.neo4j.ogm.annotation.Relationship;
 %0A%0A/*%0A * 
@@ -301,17 +301,129 @@
  name;%0A%0A
+    @Relationship(type=%22MAPPED_TO%22)%0A    private TreatmentToOntologyRelationship treatmentToOntologyRelationship;
 %0A
-
 %0A    pub
@@ -720,32 +720,32 @@
 (String name) %7B%0A
-
         this.nam
@@ -759,11 +759,353 @@
 e;%0A    %7D
+%0A%0A    public TreatmentToOntologyRelationship getTreatmentToOntologyRelationship() %7B%0A        return treatmentToOntologyRelationship;%0A    %7D%0A%0A    public void setTreatmentToOntologyRelationship(TreatmentToOntologyRelationship treatmentToOntologyRelationship) %7B%0A        this.treatmentToOntologyRelationship = treatmentToOntologyRelationship;%0A    %7D
 %0A%7D%0A

Add relationship to Treatment