main
|
Last change
on this file was 700e2f9, checked in by 186079 <matej.milevski@…>, 5 days ago |
|
Init
|
-
Property mode
set to
100644
|
|
File size:
396 bytes
|
| Line | |
|---|
| 1 | package com.finki.icare.repository;
|
|---|
| 2 |
|
|---|
| 3 | import com.finki.icare.model.User;
|
|---|
| 4 | import org.springframework.data.jpa.repository.JpaRepository;
|
|---|
| 5 | import org.springframework.stereotype.Repository;
|
|---|
| 6 |
|
|---|
| 7 | import java.util.Optional;
|
|---|
| 8 |
|
|---|
| 9 | @Repository
|
|---|
| 10 | public interface UserRepository extends JpaRepository<User, Integer> {
|
|---|
| 11 | Optional<User> findByUsername(String username);
|
|---|
| 12 | Optional<User> findByEmail(String email);
|
|---|
| 13 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.