main
Last change
on this file since 676144b was 676144b, checked in by andrejtodorovski <82031894+andrejtodorovski@…>, 18 months ago |
Added admin view of pending roles and approve functionality
|
-
Property mode
set to
100644
|
File size:
552 bytes
|
Rev | Line | |
---|
[2e46f06] | 1 | package com.example.autopartz.repository;
|
---|
| 2 |
|
---|
| 3 | import com.example.autopartz.model.User;
|
---|
| 4 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
[676144b] | 5 | import org.springframework.security.core.GrantedAuthority;
|
---|
[2e46f06] | 6 | import org.springframework.stereotype.Repository;
|
---|
| 7 |
|
---|
[676144b] | 8 | import java.util.Collection;
|
---|
[feffc2f] | 9 | import java.util.List;
|
---|
| 10 |
|
---|
[2e46f06] | 11 | // import java.util.List;
|
---|
| 12 |
|
---|
| 13 | @Repository
|
---|
[ae042f4] | 14 | public interface UserRepository extends JpaRepository<User,Integer> {
|
---|
| 15 | List<User> findAllByUsername(String username);
|
---|
[feffc2f] | 16 | List<User> findAllByUsernameAndPassword(String username, String password);
|
---|
[2e46f06] | 17 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.