10-11-2025
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
package com.billpaymentservice.bbps.entites;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import jakarta.persistence.CascadeType;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.FetchType;
|
||||
import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.GenerationType;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.JoinColumn;
|
||||
import jakarta.persistence.ManyToOne;
|
||||
import jakarta.persistence.OneToMany;
|
||||
import jakarta.persistence.OneToOne;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "plan")
|
||||
@Getter
|
||||
@Setter
|
||||
public class Plan {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
|
||||
@Column(name = "plan_id")
|
||||
private String planId;
|
||||
|
||||
@Column(name = "description")
|
||||
private String description;
|
||||
|
||||
@Column(name = "biller_id")
|
||||
private String billerId;
|
||||
|
||||
@Column(name = "category_type")
|
||||
private String categoryType;
|
||||
|
||||
@Column(name = "amount_rupees")
|
||||
private String amountInRupees;
|
||||
|
||||
@Column(name = "effectv_form")
|
||||
private String effctvFrom;
|
||||
|
||||
@Column(name = "effectv_to")
|
||||
private String effctvTo;
|
||||
|
||||
@Column(name = "status")
|
||||
private String status;
|
||||
|
||||
@OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy = "plan")
|
||||
private List<PlanCategorySubType> categorySubTypes; // List of categorySubTypes
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "plans_list_id")
|
||||
private PlansList plansList;
|
||||
|
||||
@OneToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL)
|
||||
@JoinColumn(name = "additional_info_id")
|
||||
private AdditionalInfoPlans additionalInfo;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user