source: src/main/java/com/example/repository/ClientRepository.java@ a51a591

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 
1package com.example.repository;
2
3import com.example.model.Client;
4import org.springframework.data.jpa.repository.JpaRepository;
5
6import java.util.List;
7import java.util.Optional;
8
9public 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.