summaryrefslogtreecommitdiff
path: root/src/main/java/com/stileeducation/markr/repository/StudentRepository.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/stileeducation/markr/repository/StudentRepository.java')
-rw-r--r--src/main/java/com/stileeducation/markr/repository/StudentRepository.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/com/stileeducation/markr/repository/StudentRepository.java b/src/main/java/com/stileeducation/markr/repository/StudentRepository.java
new file mode 100644
index 0000000..2d27644
--- /dev/null
+++ b/src/main/java/com/stileeducation/markr/repository/StudentRepository.java
@@ -0,0 +1,10 @@
+package com.stileeducation.markr.repository;
+
+import com.stileeducation.markr.entity.Student;
+import org.springframework.data.jpa.repository.JpaRepository;
+
+import java.util.Optional;
+
+public interface StudentRepository extends JpaRepository<Student, Long> {
+ Optional<Student> findByStudentNumber(String studentNumber);
+}