diff --git a/src/main/java/com/soongsil/CoffeeChat/entity/User.java b/src/main/java/com/soongsil/CoffeeChat/entity/User.java index 58f0d1f..194e147 100644 --- a/src/main/java/com/soongsil/CoffeeChat/entity/User.java +++ b/src/main/java/com/soongsil/CoffeeChat/entity/User.java @@ -27,5 +27,4 @@ public class User { @Column private String role; - //TODO: 이제 추가적으로 입력받는 정보 } diff --git a/src/main/java/com/soongsil/CoffeeChat/repository/MenteeRepository.java b/src/main/java/com/soongsil/CoffeeChat/repository/MenteeRepository.java new file mode 100644 index 0000000..5cc7c91 --- /dev/null +++ b/src/main/java/com/soongsil/CoffeeChat/repository/MenteeRepository.java @@ -0,0 +1,8 @@ +package com.soongsil.CoffeeChat.repository; + +import com.soongsil.CoffeeChat.entity.Mentee; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface MenteeRepository extends JpaRepository { + Mentee findByUsername(String username); +} diff --git a/src/main/java/com/soongsil/CoffeeChat/repository/MentorRepository.java b/src/main/java/com/soongsil/CoffeeChat/repository/MentorRepository.java new file mode 100644 index 0000000..2823745 --- /dev/null +++ b/src/main/java/com/soongsil/CoffeeChat/repository/MentorRepository.java @@ -0,0 +1,8 @@ +package com.soongsil.CoffeeChat.repository; + +import com.soongsil.CoffeeChat.entity.Mentor; +import org.springframework.data.jpa.repository.JpaRepository; + +public interface MentorRepository extends JpaRepository { + Mentor findByUsername(String username); +}