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