Skip to content

Commit 144a3b9

Browse files
committed
Jpa Repository with postgreSQL
1 parent 773ebe8 commit 144a3b9

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/main/java/com/example/postgresql/SpringbootPostgresqlApplication.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ public static void main(String[] args) {
2121

2222

2323

24+
2425
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.example.postgresql.student;
2+
3+
import org.springframework.data.jpa.repository.JpaRepository;
4+
import org.springframework.stereotype.Repository;
5+
6+
@Repository
7+
public interface StudentRepository extends JpaRepository<Student, Long> {
8+
9+
10+
11+
}

0 commit comments

Comments
 (0)