Created
April 13, 2018 07:24
-
-
Save Pudding124/b9983cce4ea54e587e238552659f6ba1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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