-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
패키지 구조를 바꿔서 나중에 충돌이 일어날 경우를 대비해서 미리 pr합니다. 아래 commit의 상세내역 확인을 부탁드립니다.
- Loading branch information
Showing
32 changed files
with
486 additions
and
358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 0 additions & 45 deletions
45
src/main/java/com/wakeUpTogetUp/togetUp/alarms/AlarmDao.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/main/java/com/wakeUpTogetUp/togetUp/alarms/AlarmRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.wakeUpTogetUp.togetUp.alarms; | ||
|
||
import com.wakeUpTogetUp.togetUp.alarms.model.Alarm; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.data.jpa.repository.Query; | ||
import org.springframework.data.repository.query.Param; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.util.List; | ||
import java.util.Optional; | ||
|
||
@Repository | ||
public interface AlarmRepository extends JpaRepository<Alarm, Integer> { | ||
@Override | ||
<S extends Alarm> S save(S entity); | ||
|
||
@Override | ||
Optional<Alarm> findById(Integer id); | ||
|
||
@Query("select a from Alarm a where a.user.id = :userId") | ||
Optional<List<Alarm>> findByUserId(@Param(value = "userId") Integer userId); | ||
} |
Oops, something went wrong.