-
Notifications
You must be signed in to change notification settings - Fork 0
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] Concert 조회, 삽입, 삭제 구현 #14
Conversation
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.
고생하셨습니다!
몇가지 궁금한 점이랑 의견 남겨봤습니다!
src/main/java/com/example/book_your_seat/concert/controller/dto/AddConcertRequest.java
Outdated
Show resolved
Hide resolved
src/main/java/com/example/book_your_seat/concert/controller/dto/ConcertResponse.java
Outdated
Show resolved
Hide resolved
src/main/java/com/example/book_your_seat/concert/domain/Concert.java
Outdated
Show resolved
Hide resolved
src/main/java/com/example/book_your_seat/concert/domain/Concert.java
Outdated
Show resolved
Hide resolved
|
||
@Repository |
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.
P4
제가 알기로 JPARepository를 상속 받으면 @repository가 필요 없는 것으로 알고 있는데
리포지토리라는 것을 명시해주기 위해서 작성하신건가요?
그렇다면 저는 있어도 좋다고 생각합니다!
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.
제가 알기로 JPARepository를 상속 받으면 @repository가 필요 없는 것으로 알고 있는데 리포지토리라는 것을 명시해주기 위해서 작성하신건가요? 그렇다면 저는 있어도 좋다고 생각합니다!
그냥 이름표 같은 느낌으로 줘봤습니당..!
src/main/java/com/example/book_your_seat/concert/controller/dto/AddConcertRequest.java
Outdated
Show resolved
Hide resolved
src/main/java/com/example/book_your_seat/concert/service/ConcertCommandServiceImpl.java
Outdated
Show resolved
Hide resolved
src/test/java/com/example/book_your_seat/service/ConcertServiceTest.java
Outdated
Show resolved
Hide resolved
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.
고생하셨어요
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.
좋습니다
Delete Id 유효성 검사
Insert, Delete 시 Bulk 로 적용
-> ConcertJdbcRepository 생성
-> ConcertRepository implements JpaRepository, ConcertJdbcRepository
Concert 의 time -> startHour
ConcertCommandService.add 의 return 값이 ConcertResponse 에서 Long 으로 변경
5.ConcertController.add 의 return 값이 ConcertResponse 에서 void 로 변경
예매 가능 시간은 공연 시작날로부터 일주일 전, 낮 12시로 설정
유효성 메세지 추가
그 외 여러가지 상수값들 잔뜩 추가,,
startHour 최소, 최대 유효성 검증 추가
테스트용 Schema 추가
Concert 테스트 추가
ConcertServiceTest 에 예매 가능 시간 테스트 추가