From 6beb3cbee4b12bb46fdfcd941ece3a98d88e5152 Mon Sep 17 00:00:00 2001 From: cbmeeks Date: Fri, 15 Sep 2023 10:13:29 -0400 Subject: [PATCH] Fixed formatting on code examples. Seemed to have different spacing so I replaced with tabs. --- README.adoc | 56 ++++++++++++++++++++++++++--------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/README.adoc b/README.adoc index 5ac61642..af8c4e9b 100644 --- a/README.adoc +++ b/README.adoc @@ -22,42 +22,42 @@ Here is a quick teaser of an application using Spring Data Repositories in Java: ---- public interface PersonRepository extends CrudRepository { - List findByLastname(String lastname); + List findByLastname(String lastname); - List findByFirstnameLike(String firstname); + List findByFirstnameLike(String firstname); } @Service public class MyService { - private final PersonRepository repository; + private final PersonRepository repository; - public MyService(PersonRepository repository) { - this.repository = repository; - } + public MyService(PersonRepository repository) { + this.repository = repository; + } - public void doWork() { + public void doWork() { - repository.deleteAll(); + repository.deleteAll(); - Person person = new Person(); - person.setFirstname("Oliver"); - person.setLastname("Gierke"); - repository.save(person); + Person person = new Person(); + person.setFirstname("Oliver"); + person.setLastname("Gierke"); + repository.save(person); - List lastNameResults = repository.findByLastname("Gierke"); - List firstNameResults = repository.findByFirstnameLike("Oli*"); - } + List lastNameResults = repository.findByLastname("Gierke"); + List firstNameResults = repository.findByFirstnameLike("Oli*"); + } } @KeySpace("person") class Person { - @Id String uuid; - String firstname; - String lastname; + @Id String uuid; + String firstname; + String lastname; - // getters and setters omitted for brevity + // getters and setters omitted for brevity } @Configuration @@ -72,9 +72,9 @@ Add the Maven dependency: [source,xml] ---- - org.springframework.data - spring-data-keyvalue - ${version}.RELEASE + org.springframework.data + spring-data-keyvalue + ${version}.RELEASE ---- @@ -83,15 +83,15 @@ If you'd rather like the latest snapshots of the upcoming major version, use our [source,xml] ---- - org.springframework.data - spring-data-keyvalue - ${version}-SNAPSHOT + org.springframework.data + spring-data-keyvalue + ${version}-SNAPSHOT - spring-snapshot - Spring Snapshot Repository - https://repo.spring.io/snapshot + spring-snapshot + Spring Snapshot Repository + https://repo.spring.io/snapshot ----