source: src/main/java/com/example/autopartz/repository/UserRepository.java

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 
1package com.example.autopartz.repository;
2
3import com.example.autopartz.model.User;
4import org.springframework.data.jpa.repository.JpaRepository;
5import org.springframework.security.core.GrantedAuthority;
6import org.springframework.stereotype.Repository;
7
8import java.util.Collection;
9import java.util.List;
10
11// import java.util.List;
12
13@Repository
14public 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.