source: src/main/java/com/example/medweb/repository/DoktorRepository.java

Last change on this file was e5fefbd, checked in by Anita Terziska <63020646+Nit4e@…>, 2 years ago

initial commit

  • Property mode set to 100644
File size: 430 bytes
Line 
1package com.example.medweb.repository;
2
3import com.example.medweb.model.Doktor;
4import org.springframework.data.jpa.repository.JpaRepository;
5import org.springframework.stereotype.Repository;
6
7import java.util.Optional;
8
9
10@Repository
11public interface DoktorRepository extends JpaRepository<Doktor, Integer> {
12
13 Optional<Doktor> findDoktorByEmailAndPass(String email, String pass);
14
15 Optional<Doktor> findById(Integer id);
16}
Note: See TracBrowser for help on using the repository browser.