Skip to content

Instantly share code, notes, and snippets.

@Pudding124
Created April 13, 2018 07:15
Show Gist options
  • Save Pudding124/95ec35d47c9468914f5e72e37e77f726 to your computer and use it in GitHub Desktop.
Save Pudding124/95ec35d47c9468914f5e72e37e77f726 to your computer and use it in GitHub Desktop.
@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