source: src/main/java/com/example/baza/repository/AuthenticationRepository.java

Last change on this file was ed20c2c, checked in by HumaSejdini <humasejdini12@…>, 2 years ago

Initial commit

  • Property mode set to 100644
File size: 499 bytes
Line 
1package com.example.baza.repository;
2
3
4import com.example.baza.model.Authentication;
5import org.springframework.data.jpa.repository.JpaRepository;
6import org.springframework.stereotype.Repository;
7
8import java.time.Instant;
9import java.util.List;
10import java.util.Optional;
11
12@Repository
13public interface AuthenticationRepository extends JpaRepository<Authentication, Integer> {
14 Optional<Authentication> findById(Integer id);
15
16 List<Authentication> findByTimestampLog(Instant timestampLog);
17
18}
Note: See TracBrowser for help on using the repository browser.