Skip to content

Conversation

dldusgh318
Copy link

No description provided.

Copy link

@ba2slk ba2slk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

예외 처리 전략에서 많이 배웠습니다. 고생 많으셨습니다!!


@Getter
@Builder
public class ReasonDto {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ReasonDto를 별도로 두시게 된 배경이 궁금합니다!

throw new IllegalArgumentException("행이 올바르지 않습니다.");
}

return String.valueOf("A"+(row-1))+col.toString();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

저는 row를 String으로 선언했는데, 확장성 측면에서 Integer로 선언하고 변환하는 방식이 더 좋아 보이네요. 배우고 갑니다!

.genre(movie.getGenre())
.prolog(movie.getProlog())
.build();
return new MovieDetailDto(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Builder 에서 생성자로 변경하신 이유가 궁금합니다!

Copy link

@hayong39 hayong39 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

꼼꼼하게 구현하셨네요!! 많이 배워갑니다 수고하셨어요 ~ 🫧

public ResponseEntity<List<MovieResDto.MovieDetailDto>> getMovies(){
@GetMapping("/movies")
@Operation(summary = "영화 리스트 조회하기",description = "")
public ResponseEntity<List<MovieResponseDto.MovieDetailDto>> getMovies(){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요기에는 ApiResponse 안쓰고 ResponseEntity를 쓴 이유가 있을까요??

public class Schedule extends BaseEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "schedule_id")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요런식으로 바꾸면 어떤 장점이 있나요??

Comment on lines +4 to +7
ALL(0,"전체연령가"),
OVER_12(12,"12세 이상"),
OVER_15(15,"15세 이상"),
OVER_18(18,"18세 이상");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

우옹 설명 들어간거 좋네요!!

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JpaRepository 상속하면 @repository 붙이지 않아도 되는 걸로 알아요! 가독성 때문에 붙이신걸까요?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants