diff --git a/README.textile b/README.textile index 4bc624957..d68d21cbc 100644 --- a/README.textile +++ b/README.textile @@ -198,41 +198,41 @@ public interface WorldRepository extends GraphRepository {} @Transactional public class GalaxyService { - @Autowired - private WorldRepository worldRepository; + @Autowired + private WorldRepository worldRepository; - public long getNumberOfWorlds() { - return worldRepository.count(); - } + public long getNumberOfWorlds() { + return worldRepository.count(); + } - public World createWorld(String name, int moons) { - return worldRepository.save(new World(name, moons)); - } + public World createWorld(String name, int moons) { + return worldRepository.save(new World(name, moons)); + } - public Iterable getAllWorlds() { - return worldRepository.findAll(); - } + public Iterable getAllWorlds() { + return worldRepository.findAll(); + } - public World findWorldById(Long id) { - return worldRepository.findOne(id); - } + public World findWorldById(Long id) { + return worldRepository.findOne(id); + } // This is using the schema based index - public World findWorldByName(String name) { - return worldRepository.findBySchemaPropertyValue("name", name); - } + public World findWorldByName(String name) { + return worldRepository.findBySchemaPropertyValue("name", name); + } // This is using the legacy index - public Iterable findAllByNumberOfMoons(int numberOfMoons) { - return worldRepository.findAllByPropertyValue("moons", numberOfMoons); - } + public Iterable findAllByNumberOfMoons(int numberOfMoons) { + return worldRepository.findAllByPropertyValue("moons", numberOfMoons); + } - public Collection makeSomeWorlds() { - Collection worlds = new ArrayList(); + public Collection makeSomeWorlds() { + Collection worlds = new ArrayList(); - // Solar worlds - worlds.add(createWorld("Mercury", 0)); - worlds.add(createWorld("Venus", 0)); + // Solar worlds + worlds.add(createWorld("Mercury", 0)); + worlds.add(createWorld("Venus", 0)); World earth = createWorld("Earth", 1); World mars = createWorld("Mars", 2); @@ -244,7 +244,7 @@ public class GalaxyService { // ... Create more worlds return worlds; - } + } }