-
Notifications
You must be signed in to change notification settings - Fork 6
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 : 이벤트 티켓상품 조회 #238
feat : 이벤트 티켓상품 조회 #238
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.
LGTM
public OptionGroup queryOptionGroup(Long optionGroupId) { | ||
return optionGroupRepository | ||
.findById(optionGroupId) | ||
.findByIdAndOptionGroupStatus(optionGroupId, OptionGroupStatus.VALID) | ||
.orElseThrow(() -> OptionGroupNotFoundException.EXCEPTION); | ||
} |
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.
구웃!
public TicketItem queryTicketItem(Long ticketItemId) { | ||
return ticketItemRepository | ||
.findById(ticketItemId) | ||
.findByIdAndTicketItemStatus(ticketItemId, TicketItemStatus.VALID) | ||
.orElseThrow(() -> TicketItemNotFoundException.EXCEPTION); | ||
} |
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.
확인임둥
근데 스쿼시머지할 때 이름좀 바꿔주세요 컨벤션 맞춰서 ㅎㅎ |
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
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 👍
@Enumerated(EnumType.STRING) | ||
@ColumnDefault(value = "'VALID'") | ||
private OptionGroupStatus optionGroupStatus = OptionGroupStatus.VALID; |
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.
요 부분 @ColumnDefault
굳이 안적어줘도 대입 연산하면 기본값 들어가지 않나요?
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.
아마 디비에 ddl 로 들어가는 옵션일 거에요!
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.
작업사항에 적어놨습니다만 ㅎㅎ!!!!!
개요
작업사항
@ColumnDefault는 이미 쌓인 로컬 데이터들 초기화 땜시 잠시 넣었음
변경로직