cretaed entities for BillerDetail
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
package com.billpaymentservice.bbps.entites;
|
||||
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import java.util.List;
|
||||
|
||||
import com.billpaymentservice.bbps.entites.BillerResponseParams;
|
||||
|
||||
@Entity
|
||||
@Table(name = "amount_option")
|
||||
@Getter
|
||||
@Setter
|
||||
public class AmountOption {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@Column(name = "amount_option_id")
|
||||
private Long id;
|
||||
|
||||
@ElementCollection
|
||||
@CollectionTable(
|
||||
name = "amount_option_breakup_sets",
|
||||
joinColumns = @JoinColumn(name = "amount_option_id")
|
||||
)
|
||||
@Column(name = "amount_breakup_value")
|
||||
private List<String> amountBreakupSets;
|
||||
|
||||
// 🔗 Relationship with BillerResponseParams
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "biller_response_id", nullable = false)
|
||||
private BillerResponseParams billerResponseParams;
|
||||
}
|
||||
Reference in New Issue
Block a user