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