Blame view

src/main/java/fr/plil/sio/web/mvc/DetteRepository.java 505 Bytes
db5ac50a   Zak   Examen terminé.
1
2
3
4
5
6
7
  /*
   * To change this license header, choose License Headers in Project Properties.
   * To change this template file, choose Tools | Templates
   * and open the template in the editor.
   */
  package fr.plil.sio.web.mvc;
  
4e0ba16b   Zak   Examen terminé.
8
  import java.util.List;
db5ac50a   Zak   Examen terminé.
9
10
11
  import org.springframework.data.jpa.repository.JpaRepository;
  
  public interface DetteRepository  extends JpaRepository<Dette,Long>{
8a362652   Zak   Ajout css, js et ...
12
      Dette findById(Long id);
4e0ba16b   Zak   Examen terminé.
13
      List<Dette> findByBorrower(User borrower);
95ea306a   Zak   Ajout css, img et...
14
15
16
      
      List<Dette> findByCreditor(User creditor);
      
db5ac50a   Zak   Examen terminé.
17
  }