source:
src/main/java/com/example/repository/UserRepository.java
Last change on this file was a51a591, checked in by , 14 months ago | |
---|---|
|
|
File size: 420 bytes |
Line | |
---|---|
1 | package com.example.repository; |
2 | |
3 | import com.example.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> findByUsernameAndPassword(String username, String password); |
12 | Optional<User> findByUsername(String username); |
13 | } |
Note:
See TracBrowser
for help on using the repository browser.