Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Commit

Permalink
feat: FinancialProduct Entity 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
sejineer committed Nov 12, 2023
1 parent 114df08 commit ba7ca7c
Showing 1 changed file with 46 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@

import jakarta.persistence.*;
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.Where;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Entity
@Table(name = "Financial_Product")
@NoArgsConstructor(access = AccessLevel.PROTECTED)
Expand All @@ -18,18 +22,60 @@ public class FinancialProduct {
@Column(name = "id", updatable = false)
private Long id;

@Column(name="disclosure_month")
private String disclosureMonth;

@Column(name="company_name")
private String companyName;

@Column(name = "product_name")
private String productName;

@Column(name = "join_way")
private String joinWay;

@Column(name = "maturity_interest_rate")
private String maturityInterestRate;

@Column(name = "special_condition")
private String specialCondition;

@Column(name = "join_deny")
private Integer joinDeny;

@Column(name = "join_member")
private String joinMember;

@Column(name = "etc_note")
private String etcNote;

@Column(name = "max_limit")
private Integer maxLimit;

@Column(name = "disclosure_start_day")
private LocalDate disclosureStartDay;

@Column(name = "disclosure_end_day")
private LocalDate disclosureEndDay;

@Column(name = "financial_company_submission_day")
private LocalDateTime financialCompanySubmissionDay;

@Builder
public FinancialProduct(String disclosureMonth, String companyName, String productName, String joinWay, String maturityInterestRate, String specialCondition, Integer joinDeny, String joinMember, String etcNote, Integer maxLimit, LocalDate disclosureStartDay, LocalDate disclosureEndDay, LocalDateTime financialCompanySubmissionDay) {
this.disclosureMonth = disclosureMonth;
this.companyName = companyName;
this.productName = productName;
this.joinWay = joinWay;
this.maturityInterestRate = maturityInterestRate;
this.specialCondition = specialCondition;
this.joinDeny = joinDeny;
this.joinMember = joinMember;
this.etcNote = etcNote;
this.maxLimit = maxLimit;
this.disclosureStartDay = disclosureStartDay;
this.disclosureEndDay = disclosureEndDay;
this.financialCompanySubmissionDay = financialCompanySubmissionDay;
}

}

0 comments on commit ba7ca7c

Please sign in to comment.