Line | |
---|
1 | package com.example.moviezone.repository;
|
---|
2 |
|
---|
3 |
|
---|
4 | import com.example.moviezone.model.User;
|
---|
5 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
6 | import org.springframework.stereotype.Repository;
|
---|
7 |
|
---|
8 | import java.util.List;
|
---|
9 | @Repository
|
---|
10 | public interface UserRepository extends JpaRepository<User,Integer> {
|
---|
11 | User findByUsername(String username);
|
---|
12 | List<User> findAllByUsernameAndPassword(String username, String password);
|
---|
13 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.