-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat : Implement board delete API #147
Conversation
@@ -3,10 +3,10 @@ | |||
import lombok.Getter; | |||
|
|||
@Getter | |||
public class BoardValidationExceoption extends RuntimeException { | |||
public class BoardValidationException extends RuntimeException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ด๊ฑด ์คํ์๊ธธ๋ ๊ฑฐ์ฌ๋ ค์ ๊ณ ์ณค์ด์.
์๊ฐ ๋๋ฉ์ธ ์ด๋ฆ๋ณ๊ฒฝ ๋ธ๋กํนํด์, ์ฐ์ ์์ ๋์ฌ์ฃผ์๋ฉด ใฑใ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM-
|
||
import com.gamzabat.algohub.feature.board.domain.Board; | ||
import com.gamzabat.algohub.feature.board.domain.BoardComment; | ||
|
||
public interface BoardCommentRepository extends JpaRepository<BoardComment, Long> { | ||
|
||
List<BoardComment> findAllByBoard(Board board); | ||
|
||
@Modifying |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์๋ ๋ญ๊ฐ์?? ์ฒ์๋ด
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1์ฐจ์บ์ ๋ ๋ ค์ฃผ๋ ์ด๋
ธํ
์ด์
์ด์์. ์ ๊ฑฐ ์ํ๋ฉด 1์ฐจ์บ์ ๋จ์์, findById
ํ๋ฉด ์ ๋ น ํ์ด๋์ด
์ ํํ๋ ์ ์ฟผ๋ฆฌ ์คํ ์งํ ๋ ๋ ค์ค๋๋ค./
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๊ณ ์ํ์ จ์ด๋ค~!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ญ์ ํ๋ api์ ์ง์์ด ๋ง์ด ํ์ํ๋ค..
ํ๋ ์ฃผ์๋ค์์ต๋๋ค
๐ Related Issue
close #145
๐ Description
๐ข Review Point
delete from BoardComment where id = ?
ํํ๊ฐ ๋๊ธ ์๋งํผ ๋ฐ๋ณตํด์ ๋๊ฐ.. ์ด๊ฑฐ์ซ์ด์ ๊ทธ๋ฅ Batch delete query ์งฐ์ด์.๐Etc (์ ํ)
ํตํฉํ ์คํธ ์ํ๋๋ฐ ๋์ํ๋ค๊ณ ๋ด ๋ง์์ด ๋ณด์ฅํจ
๋ฆฌ๋ทฐ๋ฐ๊ณ ๋จธ์ง์ ํ ์คํธํ ๊ฒ์