package com.mfsys.uco.model; import com.fasterxml.jackson.annotation.JsonIgnore; import com.mfsys.comm.util.FieldNameLength; import jakarta.persistence.*; import lombok.Data; import lombok.NoArgsConstructor; import lombok.RequiredArgsConstructor; import org.hibernate.annotations.CacheConcurrencyStrategy; import java.time.LocalDateTime; @Entity(name = "UCO_CS_OC_UCOBENEFICARY") @Table(name = "UCO_CS_OC_UCOBENEFICARY") @Data @org.hibernate.annotations.Cache(usage = CacheConcurrencyStrategy.READ_WRITE) public class Beneficiary { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "SERIAL", nullable = false, updatable = false, columnDefinition = FieldNameLength.BIGINT) private Long serial; @Column(name = "POR_ORGACODE", nullable = false, updatable = false, columnDefinition = FieldNameLength.POR_ORGACODE) private String porOrgacode; @Column(name = "email", nullable = false, columnDefinition = FieldNameLength.CODE_50) private String email; @Column(name = "PCR_CURRDCODE", nullable = false, updatable = true, columnDefinition = FieldNameLength.DESCRIPTION_SHORT) private String pcrCurrcode; @Column(name = "PCR_CURRDESC", nullable = false, updatable = true, columnDefinition = FieldNameLength.DESCRIPTION_SHORT) private String pcrCurrdesc; @Column(name = "PCR_CURRSHORT", nullable = false, updatable = true, columnDefinition = FieldNameLength.DESCRIPTION_SHORT) private String pcrCurrshort; @Column(name = "MBM_BKMSTITLE_REF", nullable = false, updatable = true, columnDefinition = FieldNameLength.ACCOUNT_TITLE) private String mbmBkmstitleRef; @Column(name = "MBM_BKMSNUMBER_REF", nullable = false, updatable = true, columnDefinition = FieldNameLength.ACCOUNT_NUMBER) private String mbmBkmsnumberRef; // @Column(name = "OCB_BENEFICIARYVERIFIED", nullable = false, updatable = true, columnDefinition = FieldNameLength.BOOLEAN_BIT) // private boolean ocbBeneficiaryverified; // @Column(name = "OCB_BENEFICIARYVERIFYDATE", nullable = true, updatable = true, columnDefinition = FieldNameLength.DATETIME) // private LocalDateTime ocbBeneficiaryverifydate; @Column(name = "REF_PHONE_NUMBER", nullable = true, columnDefinition = FieldNameLength.CODE_50) private String refPhoneNumber; @Column(name = "REF_EMAIL", nullable = true, columnDefinition = FieldNameLength.CODE_50) private String refEmail; @Column(name = "REF_NICK_NAME", nullable = true, columnDefinition = FieldNameLength.CODE_50) private String refNickName; }