File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -22,21 +22,21 @@ The central interface in Spring Data repository abstraction is `Repository` (pro
22
22
[source, java]
23
23
----
24
24
public interface CrudRepository<T, ID extends Serializable>
25
- extends Repository<T, ID> {
25
+ extends Repository<T, ID> {
26
26
27
- <S extends T> S save(S entity); <1>
27
+ <S extends T> S save(S entity); <1>
28
28
29
- Optional<T> findById(ID primaryKey); <2>
29
+ Optional<T> findById(ID primaryKey); <2>
30
30
31
- Iterable<T> findAll(); <3>
31
+ Iterable<T> findAll(); <3>
32
32
33
- long count(); <4>
33
+ long count(); <4>
34
34
35
- void delete(T entity); <5>
35
+ void delete(T entity); <5>
36
36
37
- boolean existsById(ID primaryKey); <6>
37
+ boolean existsById(ID primaryKey); <6>
38
38
39
- // … more functionality omitted.
39
+ // … more functionality omitted.
40
40
}
41
41
----
42
42
<1> Saves the given entity.
You can’t perform that action at this time.
0 commit comments