commit user case handled uco customer and account tables created
parent
2dbd9532c4
commit
a3d69d66eb
@ -0,0 +1,75 @@
|
||||
package com.mfsys.uco.model;
|
||||
|
||||
import com.mfsys.comm.util.FieldNameLength;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Embeddable;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Embeddable
|
||||
public class AccountId implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Column(name = "POR_ORGACODE", nullable = false, updatable = false, columnDefinition = FieldNameLength.POR_ORGACODE)
|
||||
protected String porOrgacode;
|
||||
|
||||
@Column(name = "MBM_BKMSNUMBER", nullable = false, updatable = false, columnDefinition = FieldNameLength.ACCOUNT_NUMBER)
|
||||
protected String mbmBkmsnumber;
|
||||
|
||||
|
||||
public AccountId(String porOrgacode, String mbmBkmsnumber) {
|
||||
this.porOrgacode = porOrgacode;
|
||||
this.mbmBkmsnumber = mbmBkmsnumber;
|
||||
}
|
||||
|
||||
public AccountId() {
|
||||
|
||||
}
|
||||
|
||||
public String getPorOrgacode() {
|
||||
return porOrgacode;
|
||||
}
|
||||
|
||||
public void setPorOrgacode(String porOrgacode) {
|
||||
this.porOrgacode = porOrgacode;
|
||||
}
|
||||
|
||||
public String getMbmBkmsnumber() {
|
||||
return mbmBkmsnumber;
|
||||
}
|
||||
|
||||
public void setMbmBkmsnumber(String mbmBkmsnumber) {
|
||||
this.mbmBkmsnumber = mbmBkmsnumber;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((mbmBkmsnumber == null) ? 0 : mbmBkmsnumber.hashCode());
|
||||
result = prime * result + ((porOrgacode == null) ? 0 : porOrgacode.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj)
|
||||
return true;
|
||||
if (obj == null)
|
||||
return false;
|
||||
if (getClass() != obj.getClass())
|
||||
return false;
|
||||
AccountId other = (AccountId) obj;
|
||||
if (mbmBkmsnumber == null) {
|
||||
if (other.mbmBkmsnumber != null)
|
||||
return false;
|
||||
} else if (!mbmBkmsnumber.equals(other.mbmBkmsnumber))
|
||||
return false;
|
||||
if (porOrgacode == null) {
|
||||
return other.porOrgacode == null;
|
||||
} else return porOrgacode.equals(other.porOrgacode);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,48 @@
|
||||
package com.mfsys.uco.model;
|
||||
|
||||
import com.mfsys.comm.util.FieldNameLength;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
@Entity(name = "BN_CS_MP_CUSTOMERPROFILE")
|
||||
@Table(name = "BN_CS_MP_CUSTOMERPROFILE")
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class CustomerProfile {
|
||||
@Id
|
||||
@Column(name = "POR_ORGACODE", nullable = false, updatable = false, columnDefinition = FieldNameLength.POR_ORGACODE)
|
||||
protected String porOrgacode;
|
||||
|
||||
@Id
|
||||
@Column(name = "CMP_CUSTCODE", nullable = false, updatable = false, columnDefinition = FieldNameLength.CUSTOMER_CODE)
|
||||
protected String cmpCustcode;
|
||||
|
||||
@Column(name = "PIT_IDENVALUE", nullable = true, columnDefinition = FieldNameLength.CODE_20)
|
||||
protected String pitIdenvalue;
|
||||
|
||||
@Column(name = "PIT_IDENCODE", nullable = true, columnDefinition = FieldNameLength.CODE_20)
|
||||
protected String pitIdencode;
|
||||
|
||||
@Column(name = "PAD_ADRSMOBPHONE", nullable = true, columnDefinition = FieldNameLength.CODE_20)
|
||||
protected String padAdrsmobphone;
|
||||
|
||||
@Column(name = "KYC_RENEWAL_DATE", nullable = true, columnDefinition = FieldNameLength.DATE)
|
||||
protected LocalDate kycRenewalDate;
|
||||
|
||||
@Column(name = "CMP_NAME", nullable = true, columnDefinition = FieldNameLength.CODE_50)
|
||||
private String cmpName;
|
||||
|
||||
@Column(name = "CMP_ISKYC_VERIFIED", nullable=false, columnDefinition=FieldNameLength.BOOLEAN_BIT)
|
||||
protected boolean cmpIsKycVerified = false;
|
||||
|
||||
}
|
||||
@ -0,0 +1,44 @@
|
||||
package com.mfsys.uco.model;
|
||||
|
||||
import com.mfsys.comm.util.FieldNameLength;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.EmbeddedId;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
@Entity(name = "BN_MS_UC_UCOACCOUNT")
|
||||
@Table(name = "BN_MS_UA_UCOACCOUNT")
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class UcoAccount {
|
||||
@EmbeddedId
|
||||
private AccountId id;
|
||||
|
||||
|
||||
@Column(name = "DMP_PRODCODE", nullable = false, updatable = false, columnDefinition = FieldNameLength.DMP_PRODCODE)
|
||||
protected String dmpProdcode;
|
||||
|
||||
@Column(name = "MBM_BKMSTITLE", nullable = false, updatable = true, columnDefinition = FieldNameLength.ACCOUNT_TITLE)
|
||||
protected String mbmBkmstitle;
|
||||
|
||||
@Column(name = "CMP_CUSTCODE", nullable = false, updatable = false, columnDefinition = FieldNameLength.CUSTOMER_CODE)
|
||||
protected String cmpCustcode;
|
||||
|
||||
@Column(name = "MBM_BKMSCLOSED", nullable = false, columnDefinition = FieldNameLength.BOOLEAN_BIT)
|
||||
protected boolean mbmBkmsclosed;
|
||||
|
||||
@Column(name = "SGT_LASTTRANDATE", nullable = true, updatable = true, columnDefinition = FieldNameLength.DATE)
|
||||
protected LocalDate sgtLasttrandate;
|
||||
|
||||
@Column(name = "MBM_BKMSOPENDATE", nullable = false, columnDefinition = FieldNameLength.DATE)
|
||||
protected LocalDate mbmBkmsopendate;
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue