Rev 34907 | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.affiliate;import com.spice.profitmandi.common.model.ProfitMandiConstants;import com.spice.profitmandi.dao.entity.fofo.Customer;import javax.persistence.*;import java.time.LocalDateTime;@Entity@Table(name = "web.affiliate_kyc")public class AffiliateKyc {@Id@GeneratedValue(strategy = GenerationType.IDENTITY)@Column(name = "id")private int id;@Column(name = "customer_id")private int customerId;@Enumerated(EnumType.STRING)@Column(name = "document_type")private ProfitMandiConstants.DocumentType documentType;@Column(name = "document_id")private String documentId;@Enumerated(EnumType.STRING)@Column(name = "status")private ProfitMandiConstants.Status status = ProfitMandiConstants.Status.PENDING;@Column(name = "created_at")private LocalDateTime createdAt;@Column(name = "updated_at")private LocalDateTime updatedAt;@Column(name = "reason")private String reason;@ManyToOne(fetch = FetchType.EAGER)@JoinColumn(name = "customer_id", referencedColumnName = "id", insertable = false, updatable = false)private Customer customer;public AffiliateKyc() {}public AffiliateKyc(int id, int customerId, ProfitMandiConstants.DocumentType documentType, String documentId, ProfitMandiConstants.Status status, LocalDateTime createdAt, LocalDateTime updatedAt, String reason, Customer customer) {this.id = id;this.customerId = customerId;this.documentType = documentType;this.documentId = documentId;this.status = status;this.createdAt = createdAt;this.updatedAt = updatedAt;this.reason = reason;this.customer = customer;}public int getId() {return id;}public void setId(int id) {this.id = id;}public int getCustomerId() {return customerId;}public void setCustomerId(int customerId) {this.customerId = customerId;}public ProfitMandiConstants.DocumentType getDocumentType() {return documentType;}public void setDocumentType(ProfitMandiConstants.DocumentType documentType) {this.documentType = documentType;}public String getDocumentId() {return documentId;}public void setDocumentId(String documentId) {this.documentId = documentId;}public ProfitMandiConstants.Status getStatus() {return status;}public void setStatus(ProfitMandiConstants.Status status) {this.status = status;}public LocalDateTime getCreatedAt() {return createdAt;}public void setCreatedAt(LocalDateTime createdAt) {this.createdAt = createdAt;}public LocalDateTime getUpdatedAt() {return updatedAt;}public void setUpdatedAt(LocalDateTime updatedAt) {this.updatedAt = updatedAt;}public String getReason() {return reason;}public void setReason(String reason) {this.reason = reason;}public Customer getCustomer() {return customer;}public void setCustomer(Customer customer) {this.customer = customer;}@Overridepublic String toString() {return "AffiliateKyc{" +"id=" + id +", customerId=" + customerId +", documentType=" + documentType +", documentId='" + documentId + '\'' +", status=" + status +", createdAt=" + createdAt +", updatedAt=" + updatedAt +", reason='" + reason + '\'' +", customer=" + customer +'}';}}