@Query("SELECT stu FROM student stu WHERE stu.email = :email")
Iterable<Student>findByEmail(String email)
findByCourseId
@Query("SELECT stu FROM student stu WHERE stu.courseId = :courseId")
Iterable<Student>findByCourseId(Long courseId)
findByPerm
@Query("SELECT stu FROM student stu WHERE stu.perm = :perm")
Iterable<Student>findByPerm(String perm)
findByCourseIdAndPerm
@Query("SELECT stu FROM student stu WHERE stu.courseId = :courseId AND stu.perm = :perm")
Iterable<Student>findByCourseIdAndPerm(Long courseId,
String perm)