Rev 35289 | Rev 35499 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.fofo;import com.spice.profitmandi.common.model.ProfitMandiConstants;import javax.persistence.*;import java.time.LocalDateTime;import java.util.Objects;@Entity@Table(name = "fofo.trial_form")public class TrialForm {@Id@GeneratedValue(strategy = GenerationType.IDENTITY)@Column(name = "id")private int id;@Column(name = "first_name", nullable = false, length = 50)private String firstName;@Column(name = "last_name", length = 50)private String lastName;@Column(name = "email", nullable = false, length = 100)private String email;@Column(name = "mobile", nullable = false, length = 10)private String mobile;@Column(name = "pan_document_id", nullable = false)private Integer panDocumentId;@Column(name = "aadhaar_document_id", nullable = false)private Integer aadhaarDocumentId;@Column(name = "gst_number", nullable = false, length = 15)private String gstNumber;@Column(name = "business_name", nullable = false, length = 200)private String businessName;@Column(name = "address_line1", nullable = false, length = 255)private String addressLine1;@Column(name = "address_line2", length = 255)private String addressLine2;@Column(name = "city", nullable = false, length = 100)private String city;@Column(name = "state", nullable = false, length = 100)private String state;@Column(name = "pincode", nullable = false, length = 6)private String pincode;@Column(name = "asm_id")private Integer asmId;@Column(name = "bm_id")private Integer bmId;@Column(name = "refer_by_email")private String referByEmail;@Column(name = "status", length = 20)@Enumerated(EnumType.STRING)private ProfitMandiConstants.Status status;@Column(name = "created_on")private LocalDateTime createdOn;@Column(name = "updated_on")private LocalDateTime updatedOn;public TrialForm() {}public TrialForm(int id, String firstName, String lastName, String email, String mobile, Integer panDocumentId, Integer aadhaarDocumentId, String gstNumber, String businessName, String addressLine1, String addressLine2, String city, String state, String pincode, Integer asmId, Integer bmId, String referByEmail, ProfitMandiConstants.Status status, LocalDateTime createdOn, LocalDateTime updatedOn) {this.id = id;this.firstName = firstName;this.lastName = lastName;this.email = email;this.mobile = mobile;this.panDocumentId = panDocumentId;this.aadhaarDocumentId = aadhaarDocumentId;this.gstNumber = gstNumber;this.businessName = businessName;this.addressLine1 = addressLine1;this.addressLine2 = addressLine2;this.city = city;this.state = state;this.pincode = pincode;this.asmId = asmId;this.bmId = bmId;this.referByEmail = referByEmail;this.status = status;this.createdOn = createdOn;this.updatedOn = updatedOn;}public int getId() {return id;}public void setId(int id) {this.id = id;}public String getFirstName() {return firstName;}public void setFirstName(String firstName) {this.firstName = firstName;}public String getLastName() {return lastName;}public void setLastName(String lastName) {this.lastName = lastName;}public String getEmail() {return email;}public void setEmail(String email) {this.email = email;}public String getMobile() {return mobile;}public void setMobile(String mobile) {this.mobile = mobile;}public Integer getPanDocumentId() {return panDocumentId;}public void setPanDocumentId(Integer panDocumentId) {this.panDocumentId = panDocumentId;}public Integer getAadhaarDocumentId() {return aadhaarDocumentId;}public void setAadhaarDocumentId(Integer aadhaarDocumentId) {this.aadhaarDocumentId = aadhaarDocumentId;}public String getGstNumber() {return gstNumber;}public void setGstNumber(String gstNumber) {this.gstNumber = gstNumber;}public String getBusinessName() {return businessName;}public void setBusinessName(String businessName) {this.businessName = businessName;}public String getAddressLine1() {return addressLine1;}public void setAddressLine1(String addressLine1) {this.addressLine1 = addressLine1;}public String getAddressLine2() {return addressLine2;}public void setAddressLine2(String addressLine2) {this.addressLine2 = addressLine2;}public String getCity() {return city;}public void setCity(String city) {this.city = city;}public String getState() {return state;}public void setState(String state) {this.state = state;}public String getPincode() {return pincode;}public void setPincode(String pincode) {this.pincode = pincode;}public ProfitMandiConstants.Status getStatus() {return status;}public void setStatus(ProfitMandiConstants.Status status) {this.status = status;}public LocalDateTime getCreatedOn() {return createdOn;}public void setCreatedOn(LocalDateTime createdOn) {this.createdOn = createdOn;}public LocalDateTime getUpdatedOn() {return updatedOn;}public void setUpdatedOn(LocalDateTime updatedOn) {this.updatedOn = updatedOn;}public Integer getAsmId() {return asmId;}public void setAsmId(Integer asmId) {this.asmId = asmId;}public Integer getBmId() {return bmId;}public void setBmId(Integer bmId) {this.bmId = bmId;}public String getReferByEmail() {return referByEmail;}public void setReferByEmail(String referByEmail) {this.referByEmail = referByEmail;}@Overridepublic String toString() {return "TrialForm{" +"id=" + id +", firstName='" + firstName + '\'' +", lastName='" + lastName + '\'' +", email='" + email + '\'' +", mobile='" + mobile + '\'' +", panDocumentId=" + panDocumentId +", aadhaarDocumentId=" + aadhaarDocumentId +", gstNumber='" + gstNumber + '\'' +", businessName='" + businessName + '\'' +", addressLine1='" + addressLine1 + '\'' +", addressLine2='" + addressLine2 + '\'' +", city='" + city + '\'' +", state='" + state + '\'' +", pincode='" + pincode + '\'' +", asmId=" + asmId +", bmId=" + bmId +", referByEmail='" + referByEmail + '\'' +", status=" + status +", createdOn=" + createdOn +", updatedOn=" + updatedOn +'}';}@Overridepublic boolean equals(Object o) {if (o == null || getClass() != o.getClass()) return false;TrialForm trialForm = (TrialForm) o;return id == trialForm.id && Objects.equals(firstName, trialForm.firstName) && Objects.equals(lastName, trialForm.lastName) && Objects.equals(email, trialForm.email) && Objects.equals(mobile, trialForm.mobile) && Objects.equals(panDocumentId, trialForm.panDocumentId) && Objects.equals(aadhaarDocumentId, trialForm.aadhaarDocumentId) && Objects.equals(gstNumber, trialForm.gstNumber) && Objects.equals(businessName, trialForm.businessName) && Objects.equals(addressLine1, trialForm.addressLine1) && Objects.equals(addressLine2, trialForm.addressLine2) && Objects.equals(city, trialForm.city) && Objects.equals(state, trialForm.state) && Objects.equals(pincode, trialForm.pincode) && Objects.equals(asmId, trialForm.asmId) && Objects.equals(bmId, trialForm.bmId) && Objects.equals(referByEmail, trialForm.referByEmail) && status == trialForm.status && Objects.equals(createdOn, trialForm.createdOn) && Objects.equals(updatedOn, trialForm.updatedOn);}@Overridepublic int hashCode() {return Objects.hash(id, firstName, lastName, email, mobile, panDocumentId, aadhaarDocumentId, gstNumber, businessName, addressLine1, addressLine2, city, state, pincode, asmId, bmId, referByEmail, status, createdOn, updatedOn);}}