source:
src/main/java/com/example/repository/ClientRepository.java
Last change on this file was a51a591, checked in by , 14 months ago | |
---|---|
|
|
File size: 393 bytes |
Rev | Line | |
---|---|---|
[a51a591] | 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.