Skip to content

Instantly share code, notes, and snippets.

@Pudding124
Created April 13, 2018 07:24
Show Gist options
  • Save Pudding124/b9983cce4ea54e587e238552659f6ba1 to your computer and use it in GitHub Desktop.
Save Pudding124/b9983cce4ea54e587e238552659f6ba1 to your computer and use it in GitHub Desktop.
@RelationshipEntity(type = "CRUSH_ON")
public class Crush_On {
@GraphId
private Long relationshipId;
// 起始節點
@StartNode
Person personA;
// 終止節點
@EndNode
Person personB;
public Crush_On() {}
public Crush_On(Person personA, Person personB) {
this.personA = personA;
this.personB = personB;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment