Open Kilda Java Documentation
UserRepository.java
Go to the documentation of this file.
1 package org.usermanagement.dao.repository;
2 
3 import org.springframework.data.jpa.repository.JpaRepository;
4 import org.springframework.stereotype.Repository;
5 
6 import java.util.List;
7 import java.util.Set;
8 
11 
15 @Repository
16 public interface UserRepository extends JpaRepository<UserEntity, Long> {
17 
24  UserEntity findByUsername(String userName);
25 
32  List<UserEntity> findByActiveFlag(boolean activeFlag);
33 
40  List<UserEntity> findByroles(RoleEntity roleEntity);
41 
46  UserEntity findByUserId(long userId);
47 
54  Set<UserEntity> findByRoles_roleId(Long roleId);
55 
62  List<UserEntity> findByUserIdIn(Set<Long> userIds);
63 }
Set< UserEntity > findByRoles_roleId(Long roleId)
UserEntity findByUsername(String userName)
List< UserEntity > findByUserIdIn(Set< Long > userIds)
List< UserEntity > findByroles(RoleEntity roleEntity)
List< UserEntity > findByActiveFlag(boolean activeFlag)