Blame | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.onBoarding;import com.spice.profitmandi.dao.enumuration.onBorading.onBoardingFormEnums.StoreType;import javax.persistence.*;import java.time.LocalDateTime;@Entity@Table(name = "fofo.loi_audit_trail")public class LoiAuditTrail {@Id@GeneratedValue(strategy = GenerationType.IDENTITY)private Integer id;@Column(name = "loi_id", nullable = false)private Integer loiId;@Column(name = "refer_id")private Integer referId;@Column(name = "refer_by")private String referBy;@Column(name = "filled_by")private String filledBy;@Column(name = "franchisee_name")private String franchiseeName;@Column(name = "company_name")private String companyName;@Column(name = "brand_type")private StoreType brandType;@Column(name = "brand_fee_amount")private Double brandFeeAmount;@Column(name = "payment_mode")private String paymentMode;@Column(name = "total_commitment")private Double totalCommitment;@Column(name = "loi_otp")private String loiOtp;@Column(name = "loi_generated_on")private LocalDateTime loiGeneratedOn;@Column(name = "loi_signed_on")private LocalDateTime loiSignedOn;@Column(name = "document_hash", length = 64, nullable = false)private String documentHash;@Column(name = "prev_hash", length = 64)private String prevHash;@Column(name = "ip_address", length = 45)private String ipAddress;@Column(name = "created_at")private LocalDateTime createdAt = LocalDateTime.now();public LoiAuditTrail() {}public LoiAuditTrail(Integer id, Integer loiId, Integer referId, String referBy, String filledBy, String franchiseeName, String companyName, StoreType brandType, Double brandFeeAmount, String paymentMode, Double totalCommitment, String loiOtp, LocalDateTime loiGeneratedOn, LocalDateTime loiSignedOn, String documentHash, String prevHash, String ipAddress, LocalDateTime createdAt) {this.id = id;this.loiId = loiId;this.referId = referId;this.referBy = referBy;this.filledBy = filledBy;this.franchiseeName = franchiseeName;this.companyName = companyName;this.brandType = brandType;this.brandFeeAmount = brandFeeAmount;this.paymentMode = paymentMode;this.totalCommitment = totalCommitment;this.loiOtp = loiOtp;this.loiGeneratedOn = loiGeneratedOn;this.loiSignedOn = loiSignedOn;this.documentHash = documentHash;this.prevHash = prevHash;this.ipAddress = ipAddress;this.createdAt = createdAt;}public Integer getId() {return id;}public void setId(Integer id) {this.id = id;}public Integer getLoiId() {return loiId;}public void setLoiId(Integer loiId) {this.loiId = loiId;}public Integer getReferId() {return referId;}public void setReferId(Integer referId) {this.referId = referId;}public String getReferBy() {return referBy;}public void setReferBy(String referBy) {this.referBy = referBy;}public String getFilledBy() {return filledBy;}public void setFilledBy(String filledBy) {this.filledBy = filledBy;}public String getFranchiseeName() {return franchiseeName;}public void setFranchiseeName(String franchiseeName) {this.franchiseeName = franchiseeName;}public String getCompanyName() {return companyName;}public void setCompanyName(String companyName) {this.companyName = companyName;}public StoreType getBrandType() {return brandType;}public void setBrandType(StoreType brandType) {this.brandType = brandType;}public Double getBrandFeeAmount() {return brandFeeAmount;}public void setBrandFeeAmount(Double brandFeeAmount) {this.brandFeeAmount = brandFeeAmount;}public String getPaymentMode() {return paymentMode;}public void setPaymentMode(String paymentMode) {this.paymentMode = paymentMode;}public Double getTotalCommitment() {return totalCommitment;}public void setTotalCommitment(Double totalCommitment) {this.totalCommitment = totalCommitment;}public String getLoiOtp() {return loiOtp;}public void setLoiOtp(String loiOtp) {this.loiOtp = loiOtp;}public LocalDateTime getLoiGeneratedOn() {return loiGeneratedOn;}public void setLoiGeneratedOn(LocalDateTime loiGeneratedOn) {this.loiGeneratedOn = loiGeneratedOn;}public LocalDateTime getLoiSignedOn() {return loiSignedOn;}public void setLoiSignedOn(LocalDateTime loiSignedOn) {this.loiSignedOn = loiSignedOn;}public String getDocumentHash() {return documentHash;}public void setDocumentHash(String documentHash) {this.documentHash = documentHash;}public String getPrevHash() {return prevHash;}public void setPrevHash(String prevHash) {this.prevHash = prevHash;}public String getIpAddress() {return ipAddress;}public void setIpAddress(String ipAddress) {this.ipAddress = ipAddress;}public LocalDateTime getCreatedAt() {return createdAt;}public void setCreatedAt(LocalDateTime createdAt) {this.createdAt = createdAt;}@Overridepublic String toString() {return "LoiAuditTrail{" +"id=" + id +", loiId=" + loiId +", referId=" + referId +", referBy='" + referBy + '\'' +", filledBy='" + filledBy + '\'' +", franchiseeName='" + franchiseeName + '\'' +", companyName='" + companyName + '\'' +", brandType='" + brandType + '\'' +", brandFeeAmount=" + brandFeeAmount +", paymentMode='" + paymentMode + '\'' +", totalCommitment=" + totalCommitment +", loiOtp=" + loiOtp +", loiGeneratedOn=" + loiGeneratedOn +", loiSignedOn=" + loiSignedOn +", documentHash='" + documentHash + '\'' +", prevHash='" + prevHash + '\'' +", ipAddress='" + ipAddress + '\'' +", createdAt=" + createdAt +'}';}}