Last change
on this file since a51a591 was a51a591, checked in by colovik <j.colovik@…>, 14 months ago |
final
|
-
Property mode
set to
100644
|
File size:
393 bytes
|
Line | |
---|
1 | package com.example.repository;
|
---|
2 |
|
---|
3 | import com.example.model.Client;
|
---|
4 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
5 |
|
---|
6 | import java.util.List;
|
---|
7 | import java.util.Optional;
|
---|
8 |
|
---|
9 | public interface ClientRepository extends JpaRepository<Client, Integer> {
|
---|
10 | Optional<Client> findById(Integer id);
|
---|
11 |
|
---|
12 | List<Client> findAllByName (String name);
|
---|
13 |
|
---|
14 | Client findByUsername (String username);
|
---|
15 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.