Files
bbps-backend/src/main/java/com/billpaymentservice/bbps/entites/BillValidation.java
T
2025-12-10 10:03:15 +05:30

60 lines
1.6 KiB
Java

package com.billpaymentservice.bbps.entites;
import java.util.List;
import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Entity
@Table(name = "bbps_bill_validation")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BillValidation extends Auditable {
@Id
@Column(name = "bill_id", nullable = false, length = 100)
private String billId;
@Column(name = "ref_id", length = 100)
private String refId;
@Column(name = "biller_id", length = 100)
private String billerId;
@Column(name = "status", length = 100)
private String status;
@Column(name = "action_type", length = 100)
private String actionType;
@Column(name = "user_id", length = 100)
private String userId;
@Column(name = "biller_response", columnDefinition = "TEXT")
private String billerResponse;
@OneToMany(mappedBy = "bill", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
private List<AdditionalInfoBillValidate> additionalInfo;
// 👇 Proper nested customer params (OneToMany)
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "bill")
private List<CustomerParamBillValidation> customerParams;
@Column(name = "plan_info_daos", columnDefinition = "TEXT")
private String planInfoDaos;
@Column(name = "txn_id")
private String txnId;
@Column(name = "req_id")
private String reqId;
@Column(name = "client_user_id")
private String clientUserId;
// Removed local audit fields: creationDate, modifiedDate, createdEpochDate, modifiedEpochDate
// They are now handled by Auditable base class
}