diff --git a/spring-data-neo4j-examples/hello-worlds/src/main/java/org/springframework/data/neo4j/examples/hellograph/GalaxyService.java b/spring-data-neo4j-examples/hello-worlds/src/main/java/org/springframework/data/neo4j/examples/hellograph/GalaxyService.java index e3a2967c2..f3e68837e 100644 --- a/spring-data-neo4j-examples/hello-worlds/src/main/java/org/springframework/data/neo4j/examples/hellograph/GalaxyService.java +++ b/spring-data-neo4j-examples/hello-worlds/src/main/java/org/springframework/data/neo4j/examples/hellograph/GalaxyService.java @@ -24,7 +24,6 @@ public class GalaxyService { World mars = resolveWorld("Mars", 2); mars.addRocketRouteTo(earth); worldRepository.save(mars); - /*worldRepository.save(earth);*/ resolveWorld("Jupiter", 63); resolveWorld("Saturn", 62); @@ -43,7 +42,7 @@ public class GalaxyService { World createdWorld = worldRepository.findByPropertyValue("name", name); if (createdWorld == null) { createdWorld = new World(name, moons); - createdWorld = worldRepository.save(createdWorld); + createdWorld = worldRepository.save(createdWorld); } return createdWorld; diff --git a/spring-data-neo4j-examples/hello-worlds/src/main/java/org/springframework/data/neo4j/examples/hellograph/World.java b/spring-data-neo4j-examples/hello-worlds/src/main/java/org/springframework/data/neo4j/examples/hellograph/World.java index 5c125e1d6..169573988 100644 --- a/spring-data-neo4j-examples/hello-worlds/src/main/java/org/springframework/data/neo4j/examples/hellograph/World.java +++ b/spring-data-neo4j-examples/hello-worlds/src/main/java/org/springframework/data/neo4j/examples/hellograph/World.java @@ -6,7 +6,6 @@ import org.springframework.data.neo4j.annotation.GraphId; import org.springframework.data.neo4j.annotation.Indexed; import org.springframework.data.neo4j.annotation.NodeEntity; import org.springframework.data.neo4j.annotation.RelatedTo; -import java.util.HashSet; import java.util.Set; @NodeEntity @@ -21,7 +20,7 @@ public class World { @Fetch @RelatedTo(type = RelationshipTypes.REACHABLE_BY_ROCKET, direction = Direction.BOTH) - private Set reachableByRocket = new HashSet(); + private Set reachableByRocket; public World(String name, int moons) { this.name = name;