cretaed entities for BillerDetail
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package com.billpaymentservice.bbps.entites;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "customer_param_groups")
|
||||
public class CustomerParamGroups {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@Column(name = "group_container_id")
|
||||
private Long id;
|
||||
|
||||
// 🔗 One set of groups belongs to one biller
|
||||
@OneToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "biller_id")
|
||||
private BillerDetails biller;
|
||||
|
||||
// 🔗 One CustomerParamGroups contains multiple Group objects
|
||||
@OneToMany(mappedBy = "customerParamGroups", cascade = CascadeType.ALL, orphanRemoval = true)
|
||||
private List<Group> groups;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user