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 | |
---|
1 | package com.project.beautycenter.repository;
|
---|
2 |
|
---|
3 | import com.project.beautycenter.model.Users;
|
---|
4 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
5 |
|
---|
6 |
|
---|
7 |
|
---|
8 | import java.util.Optional;
|
---|
9 |
|
---|
10 | public 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.