All Superinterfaces:
org.springframework.data.repository.CrudRepository<User ,Integer >
, org.springframework.data.repository.Repository<User ,Integer >
@Repository
public interface UserRepository
extends org.springframework.data.repository.CrudRepository<User ,Integer >
Method Summary
All Methods Instance Methods Abstract Methods
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
Method Details
findCoursesStaffedByUser
@Query("select c from courses c where c.id in (select cs.courseId from staff cs where cs.githubId = :githubId)")
Iterable <Course > findCoursesStaffedByUser (Integer githubId)