fixed the biller Id Saving problem added 404 not found url
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
package com.billpaymentservice.bbps.entites;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
|
||||
@Entity
|
||||
@Table(name = "complaint_details")
|
||||
@Getter
|
||||
@Setter
|
||||
@ToString
|
||||
public class ComplaintDetails {
|
||||
|
||||
@Id
|
||||
@Column(name = "complaint_id", nullable = false, unique = true)
|
||||
private String complaintId; // Primary key (UUID from BBPS API)
|
||||
|
||||
@Column(name = "req_id")
|
||||
private String reqId;
|
||||
|
||||
@Column(name = "txn_id")
|
||||
private String txnId;
|
||||
|
||||
@Column(name = "complaint_descr")
|
||||
private String complaintDescr;
|
||||
|
||||
@Column(name = "complaint_dispos")
|
||||
private String complaintDispos;
|
||||
|
||||
@Column(name = "complaint_type")
|
||||
private String complaintType;
|
||||
|
||||
@Column(name = "bank_txn_id")
|
||||
private String bankTxnId;
|
||||
|
||||
@Column(name = "txn_npci_id")
|
||||
private String txnNpciId;
|
||||
|
||||
@Column(name = "assigned_to")
|
||||
private String assignedTo;
|
||||
|
||||
@Column(name = "complaint_npci_id")
|
||||
private String complaintNpciId;
|
||||
|
||||
@Column(name = "complaint_raised_from")
|
||||
private String complaintRaisedFrom;
|
||||
|
||||
@Column(name = "user_id")
|
||||
private String userId;
|
||||
|
||||
@Column(name = "status")
|
||||
private String status;
|
||||
|
||||
@Column(name = "ref_id")
|
||||
private String refId;
|
||||
|
||||
@Column(name = "estimated_tat")
|
||||
private String estimated_TAT;
|
||||
|
||||
@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;
|
||||
}
|
||||
@@ -2,10 +2,13 @@ package com.billpaymentservice.bbps.entites;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
import jakarta.persistence.ForeignKey;
|
||||
|
||||
|
||||
import jakarta.persistence.CascadeType;
|
||||
import jakarta.persistence.CollectionTable;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.ConstraintMode;
|
||||
import jakarta.persistence.ElementCollection;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.FetchType;
|
||||
@@ -36,10 +39,11 @@ public class Group {
|
||||
@Column(name = "input")
|
||||
private String input;
|
||||
|
||||
// Example: "Admission No/Application No/GR No" → stored as multiple params
|
||||
@ElementCollection
|
||||
@CollectionTable(name = "group_params", joinColumns = @JoinColumn(name = "group_id"))
|
||||
@Column(name = "param_name")
|
||||
@CollectionTable(
|
||||
name = "group_params",
|
||||
joinColumns = @JoinColumn(name = "group_id"),
|
||||
foreignKey = @ForeignKey(value = ConstraintMode.NO_CONSTRAINT)
|
||||
)
|
||||
private List<String> params;
|
||||
|
||||
// 🔗 Parent group relationship (for nested groups)
|
||||
|
||||
Reference in New Issue
Block a user