-
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.
- 수정된 ERD에 따라 예약 및 예약 객실 엔티티 수정 - Payment 엔티티 추가
- Loading branch information
1 parent
d4047a2
commit 649860e
Showing
3 changed files
with
79 additions
and
51 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
src/main/java/com/backoffice/upjuyanolja/domain/payment/Payment.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,35 @@ | ||
package com.backoffice.upjuyanolja.domain.payment; | ||
|
||
import com.backoffice.upjuyanolja.domain.reservation.entity.PayMethod; | ||
import com.backoffice.upjuyanolja.global.common.BaseTime; | ||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.EnumType; | ||
import jakarta.persistence.Enumerated; | ||
import jakarta.persistence.GeneratedValue; | ||
import jakarta.persistence.GenerationType; | ||
import jakarta.persistence.Id; | ||
import lombok.AccessLevel; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import org.hibernate.annotations.Comment; | ||
@Getter | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
@Entity | ||
public class Payment extends BaseTime { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Comment("결제 식별자") | ||
private Long id; | ||
|
||
@Column(nullable = false, name = "pay_method") | ||
@Enumerated(value = EnumType.STRING) | ||
@Comment("결제 수단") | ||
private PayMethod payMethod; | ||
|
||
|
||
@Column(nullable = false, name = "final_price") | ||
@Comment("최종 가격") | ||
private int finalPrice; | ||
} |
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