package data.domain.nodes; import org.springframework.data.neo4j.annotation.GraphId; import org.springframework.data.neo4j.annotation.NodeEntity; @NodeEntity public class Genre { @GraphId private Long id; private String name; public String getName() { return name; } public void setName(String name) { this.name = name; } }