Last change
on this file since 351c43f was 14b648e, checked in by Vzdra <vladko.zdravkovski@…>, 4 years ago |
refactor and edit team/company/user
|
-
Property mode
set to
100644
|
File size:
469 bytes
|
Rev | Line | |
---|
[7987457] | 1 | package it.finki.tinki.repository;
|
---|
| 2 |
|
---|
| 3 | import it.finki.tinki.model.Users.User;
|
---|
| 4 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
| 5 | import org.springframework.stereotype.Repository;
|
---|
| 6 |
|
---|
[7edede9] | 7 | import java.util.Optional;
|
---|
| 8 |
|
---|
[7987457] | 9 | @Repository
|
---|
| 10 | public interface UserRepository extends JpaRepository<User, Long> {
|
---|
[29c0ed0] | 11 | User findByEmailAndPassword(String email, String password);
|
---|
[7edede9] | 12 | Optional<User> findByEmail(String email);
|
---|
[14b648e] | 13 | Optional<User> findByIdAndEmail(Long id, String email);
|
---|
[7987457] | 14 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.