Skip to content

Commit e3522d0

Browse files
cbmeeksmp911de
authored andcommitted
Polishing.
Switch tabs to space indents. Closes: #531
1 parent 23ab8ef commit e3522d0

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

README.adoc

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -22,42 +22,42 @@ Here is a quick teaser of an application using Spring Data Repositories in Java:
2222
----
2323
public interface PersonRepository extends CrudRepository<Person, Long> {
2424
25-
List<Person> findByLastname(String lastname);
25+
List<Person> findByLastname(String lastname);
2626
27-
List<Person> findByFirstnameLike(String firstname);
27+
List<Person> findByFirstnameLike(String firstname);
2828
}
2929
3030
@Service
3131
public class MyService {
3232
33-
private final PersonRepository repository;
33+
private final PersonRepository repository;
3434
35-
public MyService(PersonRepository repository) {
36-
this.repository = repository;
37-
}
35+
public MyService(PersonRepository repository) {
36+
this.repository = repository;
37+
}
3838
39-
public void doWork() {
39+
public void doWork() {
4040
41-
repository.deleteAll();
41+
repository.deleteAll();
4242
43-
Person person = new Person();
44-
person.setFirstname("Oliver");
45-
person.setLastname("Gierke");
46-
repository.save(person);
43+
Person person = new Person();
44+
person.setFirstname("Oliver");
45+
person.setLastname("Gierke");
46+
repository.save(person);
4747
48-
List<Person> lastNameResults = repository.findByLastname("Gierke");
49-
List<Person> firstNameResults = repository.findByFirstnameLike("Oli*");
50-
}
48+
List<Person> lastNameResults = repository.findByLastname("Gierke");
49+
List<Person> firstNameResults = repository.findByFirstnameLike("Oli*");
50+
}
5151
}
5252
5353
@KeySpace("person")
5454
class Person {
5555
56-
@Id String uuid;
57-
String firstname;
58-
String lastname;
56+
@Id String uuid;
57+
String firstname;
58+
String lastname;
5959
60-
// getters and setters omitted for brevity
60+
// getters and setters omitted for brevity
6161
}
6262
6363
@Configuration
@@ -72,9 +72,9 @@ Add the Maven dependency:
7272
[source,xml]
7373
----
7474
<dependency>
75-
<groupId>org.springframework.data</groupId>
76-
<artifactId>spring-data-keyvalue</artifactId>
77-
<version>${version}.RELEASE</version>
75+
<groupId>org.springframework.data</groupId>
76+
<artifactId>spring-data-keyvalue</artifactId>
77+
<version>${version}.RELEASE</version>
7878
</dependency>
7979
----
8080

@@ -83,15 +83,15 @@ If you'd rather like the latest snapshots of the upcoming major version, use our
8383
[source,xml]
8484
----
8585
<dependency>
86-
<groupId>org.springframework.data</groupId>
87-
<artifactId>spring-data-keyvalue</artifactId>
88-
<version>${version}-SNAPSHOT</version>
86+
<groupId>org.springframework.data</groupId>
87+
<artifactId>spring-data-keyvalue</artifactId>
88+
<version>${version}-SNAPSHOT</version>
8989
</dependency>
9090
9191
<repository>
92-
<id>spring-snapshot</id>
93-
<name>Spring Snapshot Repository</name>
94-
<url>https://repo.spring.io/snapshot</url>
92+
<id>spring-snapshot</id>
93+
<name>Spring Snapshot Repository</name>
94+
<url>https://repo.spring.io/snapshot</url>
9595
</repository>
9696
----
9797

0 commit comments

Comments
 (0)