save billerdata to in database working code
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
package com.billpaymentservice.bbps.entites;
|
||||
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import java.util.List;
|
||||
|
||||
import com.billpaymentservice.bbps.entites.BillerResponseParams;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@Entity
|
||||
@Table(name = "amount_option")
|
||||
@@ -15,9 +13,9 @@ import com.billpaymentservice.bbps.entites.BillerResponseParams;
|
||||
public class AmountOption {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@Column(name = "amount_option_id")
|
||||
private Long id;
|
||||
@JsonProperty("amountOptionId") // ✅ JSON field map karo
|
||||
private String amountOptionId; // ✅ String type, manual ID
|
||||
|
||||
@ElementCollection
|
||||
@CollectionTable(
|
||||
@@ -31,4 +29,4 @@ public class AmountOption {
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "biller_response_id", nullable = false)
|
||||
private BillerResponseParams billerResponseParams;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user