commit
parent
57c4f7152b
commit
dd230bffea
@ -0,0 +1,46 @@
|
|||||||
|
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;
|
||||||
|
}
|
||||||
@ -0,0 +1,14 @@
|
|||||||
|
package com.mfsys.uco.repository;
|
||||||
|
|
||||||
|
import com.mfsys.uco.model.Beneficiary;
|
||||||
|
import com.mfsys.uco.model.BeneficiaryId;
|
||||||
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
|
@Repository
|
||||||
|
public interface BeneficiaryRepository extends JpaRepository<Beneficiary, Long> {
|
||||||
|
|
||||||
|
Optional<Beneficiary> findBeneficiaryByEmailAndPorOrgacodeAndMbmBkmsnumberRef(String email, String porOrgacode, String mbmBkmsnumberRef);
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue