From fa34f76ad8ebccb96012b45a4207532846cfa03f Mon Sep 17 00:00:00 2001 From: Szymon Szukalski Date: Tue, 23 Jul 2024 23:19:45 +1000 Subject: Define JPA entities and repositories and H2 DB --- .../com/stileeducation/markr/repository/StudentRepository.java | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/main/java/com/stileeducation/markr/repository/StudentRepository.java (limited to 'src/main/java/com/stileeducation/markr/repository/StudentRepository.java') 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 { + Optional findByStudentNumber(String studentNumber); +} -- cgit v1.2.3