Interface UserRepository
- All Superinterfaces:
CrudRepository<User,Long>
,JpaRepository<User,Long>
,PagingAndSortingRepository<User,Long>
,QueryByExampleExecutor<User>
,Repository<User,Long>
repository used for User class.
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByGroupsContainingAndTasksNotCompletedAndOverdue(Group group, boolean completed, Date cutoff)
findAllUserInMyGroups(User user)
findAllUsersInMyOwnGroups(User owner)
findFirstByOauthKey(String oauthKey)
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlush
Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll
Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findOne
-
Method Details
-
findFirstByOauthKey
-
findAllByGroupsContainingAndTasksNotCompletedAndOverdue
@Query("select distinct u from User as u inner join u.groups as g inner join g.tasks as t where g = :group and t.completed = :completed and t.dueDate < :cutoff and t.user = u order by u.displayName") Iterable<User> findAllByGroupsContainingAndTasksNotCompletedAndOverdue(Group group, boolean completed, Date cutoff) -
findAllByGroupsNotEmptyOrderByDisplayNameAsc
-
findAllUsersInMyOwnGroups
-
findAllUserInMyGroups
-