-
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.
* feat : 예약대기시 확정좌석에 사용되는 ConfirmedSeat 엔티티 추가(기존 WaitingBookingSeat 추상화해서 적용) * 기존의 WaitingBookingSeat 은 SelectedSeat 으로 전환 * feat : WaitingBooking - toActive, getConfirmedSeatIds 메소드 정의 & Confirmed Seat 연관관계 적용 * feat : WaitingBookingRepository - findWithConfirmedSeatsByStatus, updateStatusByIdIn 쿼리 구현 * feat : WaitingBookingFixture 데이터 추가 * feat : activateWaitingBooking 메소드 변경감지를 통한 업데이트로 변경 & getWaitingBookingsByStatusIsActivation, expireActiveWaitingBooking 메소드 구현 * feat : WaitingBookingFacade - 6시간동안 예약을 하지않아 만료된 예약대기를 처리하는 processWaitingBooking 메소드 구현 * chore : 스케줄러 모듈에 트랜잭션 테스트 의존성 추가 * feat : WaitingBookingFacade - 예매대기 만료처리 스케줄러 구현 * refactor : SelectedSeat 엔티티에 불필요한 게터 제거 * chore : scheduler 모듈 yml 파일 test 전용 파일만 공개하도록 설정 * feat : SeatRepository - id 에 해당하는 좌석의 공연 이름을 조회하는 쿼리 구현 * chore : 스프링 메일 설정추가 & 비동기 이벤트에 사용할 스레드풀 설정 * feat : 메일에 사용할 html 템플릿 구현 * feat : MailSender 구현 & 예약대기 활성화 알림 메일발송 메소드 구현 * refactor : SeatRepository - findShowNameById 리턴타입 Optional 로 변경 * feat : 예약대기 활성화 이벤트를 수신해서 메일을 발송하는 이벤트 리스너 구현 * feat : 예약대기 활성화 알림 메일발송 이벤트 적용
- Loading branch information
1 parent
ebfb6a4
commit 32a694f
Showing
35 changed files
with
776 additions
and
71 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
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
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
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
22 changes: 22 additions & 0 deletions
22
...rc/main/java/dev/hooon/waitingbooking/domain/entity/waitingbookingseat/ConfirmedSeat.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 dev.hooon.waitingbooking.domain.entity.waitingbookingseat; | ||
|
||
import dev.hooon.waitingbooking.domain.entity.WaitingBooking; | ||
import jakarta.persistence.DiscriminatorValue; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.Table; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Entity | ||
@NoArgsConstructor | ||
@Table(name = "confirmed_seat_table") | ||
@DiscriminatorValue("confirmed") | ||
public class ConfirmedSeat extends WaitingBookingSeat { | ||
|
||
private ConfirmedSeat(Long seatId, WaitingBooking waitingBooking) { | ||
super(seatId, waitingBooking); | ||
} | ||
|
||
public static ConfirmedSeat of(Long seatId, WaitingBooking waitingBooking) { | ||
return new ConfirmedSeat(seatId, waitingBooking); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...src/main/java/dev/hooon/waitingbooking/domain/entity/waitingbookingseat/SelectedSeat.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,23 @@ | ||
package dev.hooon.waitingbooking.domain.entity.waitingbookingseat; | ||
|
||
import dev.hooon.waitingbooking.domain.entity.WaitingBooking; | ||
import jakarta.persistence.DiscriminatorValue; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.Table; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Entity | ||
@NoArgsConstructor | ||
@Table(name = "selected_seat_table") | ||
@DiscriminatorValue("selected") | ||
public class SelectedSeat extends WaitingBookingSeat { | ||
|
||
private SelectedSeat(Long seatId, WaitingBooking waitingBooking) { | ||
super(seatId, waitingBooking); | ||
} | ||
|
||
// 팩토리 메소드 | ||
public static SelectedSeat of(Long seatId, WaitingBooking waitingBooking) { | ||
return new SelectedSeat(seatId, waitingBooking); | ||
} | ||
} |
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
Oops, something went wrong.