change disease

master
ziyonghong 5 years ago
parent e0e9cce852
commit a849eaf729

@ -4,6 +4,9 @@ package com.cmkg.cmkg.node;
import org.neo4j.ogm.annotation.GeneratedValue;
import org.neo4j.ogm.annotation.Id;
import org.neo4j.ogm.annotation.NodeEntity;
import org.neo4j.ogm.annotation.Relationship;
import java.util.Set;
@NodeEntity
public class disease {
@ -13,6 +16,8 @@ public class disease {
private String syptom;
private String proune;
private String mchar;
@Relationship(type = "my", direction = Relationship.DIRECTION)
public String[] teammates;
public Long getDid() {
return did;
@ -54,15 +59,11 @@ public class disease {
this.mchar = mchar;
}
@Override
public String toString() {
return "disease{" +
"did=" + did +
", name='" + name + '\'' +
", syptom='" + syptom + '\'' +
", proune='" + proune + '\'' +
", mchar='" + mchar + '\'' +
'}';
public String[] getTeammates() {
return teammates;
}
public void setTeammates(String[] teammates) {
this.teammates = teammates;
}
}

Loading…
Cancel
Save