Go to most recent revision | 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 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;public AffiliateKyc(int id, int customerId, ProfitMandiConstants.DocumentType documentType, String documentId, ProfitMandiConstants.Status status, LocalDateTime createdAt) {this.id = id;this.customerId = customerId;this.documentType = documentType;this.documentId = documentId;this.status = status;this.createdAt = createdAt;}public AffiliateKyc() {}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;}@Overridepublic String toString() {return "AffiliateKyc{" +"id=" + id +", customerId=" + customerId +", documentType=" + documentType +", documentId='" + documentId + '\'' +", status=" + status +", createdAt=" + createdAt +'}';}}