Interface UserRepository

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 Details

    • findByGithubId

      Optional<User> findByGithubId(Integer githubId)
    • findByGithubLogin

      Optional<User> findByGithubLogin(String githubLogin)
    • 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)