package edu.umich.umms.worldofworkcraft.domain;

import lombok.Data;
import org.neo4j.graphdb.Direction;
import org.springframework.data.neo4j.annotation.Fetch;
import org.springframework.data.neo4j.annotation.GraphId;
import org.springframework.data.neo4j.annotation.NodeEntity;
import org.springframework.data.neo4j.annotation.RelatedTo;

import java.util.Set;

@NodeEntity
public class Achievement {
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getPoint() {
        return point;
    }

    public void setPoint(Long point) {
        this.point = point;
    }

    public Learner getLearner() {
        return learner;
    }

    public void setLearner(Learner learner) {
        this.learner = learner;
    }


    @GraphId
   private Long id;
   private String name;
   private Long point;
    private Learner learner;

}

@@ -46,120 +46,8 @@
 n;%0A%0A
-import lombok.Data;%0Aimport org.neo4j.graphdb.Direction;%0Aimport org.springframework.data.neo4j.annotation.Fetch;%0A
 impo
@@ -164,91 +164,8 @@
 ity;
-%0Aimport org.springframework.data.neo4j.annotation.RelatedTo;%0A%0Aimport java.util.Set;
 %0A%0A@N
@@ -490,24 +490,25 @@
 return point
+s
 ;%0A    %7D%0A%0A   
@@ -528,16 +528,17 @@
 setPoint
+s
 (Long po
@@ -540,16 +540,17 @@
 ng point
+s
 ) %7B%0A    
@@ -567,16 +567,17 @@
 oint
+s
  = point
 ;%0A  
@@ -568,24 +568,25 @@
 ints = point
+s
 ;%0A    %7D%0A%0A   
@@ -789,24 +789,25 @@
 ng name;%0A   
+ 
 private Long
@@ -812,16 +812,17 @@
 ng point
+s
 ;%0A    pr

change point to points