Skip to content

Commit 5ebcee9

Browse files
committed
DATACMNS-1188 - Polishing.
Fixed indentation in CrudRepository and aligned callouts.
1 parent bfaafca commit 5ebcee9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/main/asciidoc/repositories.adoc

+8-8
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@ The central interface in Spring Data repository abstraction is `Repository` (pro
2222
[source, java]
2323
----
2424
public interface CrudRepository<T, ID extends Serializable>
25-
extends Repository<T, ID> {
25+
extends Repository<T, ID> {
2626
27-
<S extends T> S save(S entity); <1>
27+
<S extends T> S save(S entity); <1>
2828
29-
Optional<T> findById(ID primaryKey); <2>
29+
Optional<T> findById(ID primaryKey); <2>
3030
31-
Iterable<T> findAll(); <3>
31+
Iterable<T> findAll(); <3>
3232
33-
long count(); <4>
33+
long count(); <4>
3434
35-
void delete(T entity); <5>
35+
void delete(T entity); <5>
3636
37-
boolean existsById(ID primaryKey); <6>
37+
boolean existsById(ID primaryKey); <6>
3838
39-
// … more functionality omitted.
39+
// … more functionality omitted.
4040
}
4141
----
4242
<1> Saves the given entity.

0 commit comments

Comments
 (0)