Created
April 13, 2018 07:15
-
-
Save Pudding124/95ec35d47c9468914f5e72e37e77f726 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
@NodeEntity | |
public class Person { | |
// neo4j節點編號 | |
@GraphId | |
private Long id; | |
// 以下皆定義節點的屬性 | |
private String name; | |
private String gender; | |
private String description; | |
public Person(){} | |
public Person(String name, String gender, String description){ | |
this.name = name; | |
this.gender =gender; | |
this.description = description; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment