42 lines
1.1 KiB
Java
42 lines
1.1 KiB
Java
package com.billpaymentservice.bbps.entites;
|
|
|
|
import java.util.List;
|
|
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
import lombok.ToString;
|
|
import jakarta.persistence.*;
|
|
import jakarta.validation.constraints.*;
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
import java.util.List;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@ToString
|
|
@Table(name = "biller_plan_response_params")
|
|
public class BillerPlanResponseParams {
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
private Long id; // Primary Key
|
|
|
|
@Column(name = "biller_plan_response_id", nullable = false, unique = true)
|
|
@NotBlank(message = "Biller Plan Response ID cannot be blank")
|
|
private String billerPlanResponseId;
|
|
|
|
// ✅ params list — since it's not a separate table, we can store as JSON or text
|
|
@Column(name = "params", columnDefinition = "TEXT")
|
|
private String paramsJson;
|
|
|
|
@Column(name = "amount_options", columnDefinition = "TEXT")
|
|
private String amountOptionsJson;
|
|
|
|
// 🔗 Relationship with BillerDAO
|
|
@OneToOne
|
|
@JoinColumn(name = "biller_id", nullable = false)
|
|
private BillerDetails biller;
|
|
}
|
|
|