source: src/main/java/com/project/beautycenter/repository/UsersRepository.java

Last change on this file was 850b344, checked in by Tamara Simikj <tamara.simic12@…>, 2 years ago

Initial commit

  • Property mode set to 100644
File size: 443 bytes
Line 
1package com.project.beautycenter.repository;
2
3import com.project.beautycenter.model.Users;
4import org.springframework.data.jpa.repository.JpaRepository;
5
6
7
8import java.util.Optional;
9
10public interface UsersRepository extends JpaRepository<Users, Integer> {
11
12 Users findByUsernameAndUpassword(String username, String password);
13
14 Optional<Users> findByUsername(String username);
15
16 Optional<Users> findUserByUsername(String username);
17}
Note: See TracBrowser for help on using the repository browser.