entity update with audit
This commit is contained in:
@@ -2,12 +2,12 @@ package com.billpaymentservice.bbps.entites;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.billpaymentservice.bbps.audit.Auditable;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
|
||||
import jakarta.persistence.CascadeType;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.EntityListeners;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.OneToMany;
|
||||
import jakarta.persistence.OneToOne;
|
||||
@@ -21,6 +21,7 @@ import lombok.ToString;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@EntityListeners(AuditListener.class)
|
||||
@ToString(exclude = {
|
||||
"billerPaymentModes",
|
||||
"billerPaymentChannels",
|
||||
@@ -36,7 +37,7 @@ import lombok.ToString;
|
||||
|
||||
@Table(name = "bbps_biller_details")
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class BillerDetails{
|
||||
public class BillerDetails extends Auditable {
|
||||
|
||||
@Id
|
||||
@Column(name = "biller_id", length = 14, nullable = false, unique = true)
|
||||
@@ -160,4 +161,4 @@ public class BillerDetails{
|
||||
|
||||
@OneToOne(mappedBy = "biller", cascade = CascadeType.ALL)
|
||||
private BillerPlanResponseParams billerPlanResponseParams;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user