Ignore:
Timestamp:
02/18/24 22:01:54 (9 months ago)
Author:
ppaunovski <paunovskipavel@…>
Branches:
master
Children:
4251327
Parents:
bde8b13
Message:

All 3 main use cases implemented.

  1. Starting a commute
  2. Writing a ticket
  3. Starting an instance of a Bus Line
Location:
src/main/java/mk/ukim/finki/busngo/repository
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/mk/ukim/finki/busngo/repository/BiletRepository.java

    rbde8b13 re272096  
    1515//    List<Bilet> findAllByKorisnikByPatnikKId(Korisnik korisnik);
    1616    Optional<Bilet> findByBIdAndAndKorisnikByPatnikKId(Long bid, Patnik patnik);
     17//    List<Bilet> findAllByKorisnikByPatnikKIdAndBStatus(Patnik patnik, BILET_STATUS status);
    1718}
  • src/main/java/mk/ukim/finki/busngo/repository/VozenjeRepository.java

    rbde8b13 re272096  
    33import mk.ukim.finki.busngo.model.entities.Patnik;
    44import mk.ukim.finki.busngo.model.entities.Vozenje;
     5import mk.ukim.finki.busngo.model.enums.VOZENJE_STATUS;
    56import org.springframework.data.jpa.repository.JpaRepository;
    67
     
    910public interface VozenjeRepository extends JpaRepository<Vozenje, Long> {
    1011    List<Vozenje> findAllByKorisnikByPatnikKId(Patnik patnik);
     12    List<Vozenje> findAllByKorisnikByPatnikKIdAndAndVozenjeStatus(Patnik patnik, VOZENJE_STATUS vozenjeStatus);
    1113}
Note: See TracChangeset for help on using the changeset viewer.