61 lines
1.4 KiB
Java
61 lines
1.4 KiB
Java
package com.billpaymentservice.bbps.entites;
|
|
|
|
import jakarta.persistence.CascadeType;
|
|
import jakarta.persistence.Column;
|
|
import jakarta.persistence.Entity;
|
|
import jakarta.persistence.Id;
|
|
import jakarta.persistence.OneToOne;
|
|
import jakarta.persistence.Table;
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
|
|
@Entity
|
|
@Table(name = "check_client_status_req_id")
|
|
@Getter
|
|
@Setter
|
|
public class CheckClientStatusReqId {
|
|
|
|
@Id
|
|
@Column(name = "bill_id", length = 200)
|
|
private String billId; // Primary Key (UUID from BBPS)
|
|
|
|
@Column(name = "ref_id")
|
|
private String refId;
|
|
|
|
@Column(name = "biller_id")
|
|
private String billerId;
|
|
|
|
@Column(name = "status")
|
|
private String status;
|
|
|
|
@Column(name = "action_type")
|
|
private String actionType;
|
|
|
|
@Column(name = "user_id")
|
|
private String userId;
|
|
|
|
@Column(name = "creation_date")
|
|
private String creationDate;
|
|
|
|
@Column(name = "modified_date")
|
|
private String modifiedDate;
|
|
|
|
@Column(name = "created_epoch_date")
|
|
private Long createdEpochDate;
|
|
|
|
@Column(name = "modified_epoch_date")
|
|
private Long modifiedEpochDate;
|
|
|
|
@Column(name = "req_id")
|
|
private String reqId;
|
|
|
|
@Column(name = "txn_id")
|
|
private String txnId;
|
|
|
|
// Correct OneToOne Child Mapping
|
|
@OneToOne(mappedBy = "billMaster", cascade = CascadeType.ALL)
|
|
private CheckClientBillerData billerResponse;
|
|
|
|
|
|
}
|