Changeset bde8b13 for src/main/java/mk/ukim/finki/busngo/repository
- Timestamp:
- 01/09/24 01:26:08 (11 months ago)
- Branches:
- master
- Children:
- e272096
- Parents:
- b101b69
- Location:
- src/main/java/mk/ukim/finki/busngo/repository
- Files:
-
- 11 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/mk/ukim/finki/busngo/repository/BiletRepository.java
rb101b69 rbde8b13 8 8 9 9 import java.util.List; 10 import java.util.Optional; 10 11 11 12 … … 13 14 // List<Bilet> findAllByKorisnikByPatnikKIdAndBStatus(Korisnik korisnik, BILET_STATUS status); 14 15 // List<Bilet> findAllByKorisnikByPatnikKId(Korisnik korisnik); 16 Optional<Bilet> findByBIdAndAndKorisnikByPatnikKId(Long bid, Patnik patnik); 15 17 } -
src/main/java/mk/ukim/finki/busngo/repository/KorisnikRepository.java
rb101b69 rbde8b13 5 5 import org.springframework.data.jpa.repository.JpaRepository; 6 6 import org.springframework.data.jpa.repository.Query; 7 import org.springframework.data.repository.NoRepositoryBean; 7 8 8 9 import java.util.Optional; 10 9 11 10 12 public interface KorisnikRepository extends JpaRepository<Korisnik, Long> { -
src/main/java/mk/ukim/finki/busngo/repository/PatnikRepository.java
rb101b69 rbde8b13 3 3 import mk.ukim.finki.busngo.model.entities.Patnik; 4 4 import org.springframework.data.jpa.repository.JpaRepository; 5 import org.springframework.data.jpa.repository.Query; 5 6 import org.springframework.stereotype.Repository; 6 7 8 import java.util.List; 9 import java.util.Optional; 10 7 11 public interface PatnikRepository extends JpaRepository<Patnik, Long> { 8 12 @Query("SELECT p from Patnik p where p.kEmail = ?1") 13 Optional<Patnik> findByKEmail(String email); 9 14 }
Note:
See TracChangeset
for help on using the changeset viewer.