Skip to content

Commit 1c73794

Browse files
committed
refactor: 리포지토리 계층 리팩토링 (DASOMBE-15)
1 parent 4fdba6b commit 1c73794

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package dmu.dasom.api.domain.activity.repository;
2+
3+
import dmu.dasom.api.domain.activity.entity.Activity;
4+
import org.springframework.data.jpa.repository.JpaRepository;
5+
6+
public interface ActivityRepository extends JpaRepository<Activity, Long> {
7+
8+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package dmu.dasom.api.domain.activity.repository;
2+
3+
import dmu.dasom.api.domain.activity.entity.Section;
4+
import org.springframework.data.jpa.repository.JpaRepository;
5+
import org.springframework.stereotype.Repository;
6+
7+
import java.util.Optional;
8+
9+
@Repository
10+
public interface SectionRepository extends JpaRepository<Section, Long> {
11+
Optional<Section> findByName(String name);
12+
}

0 commit comments

Comments
 (0)