Subversion Repositories SmartDukaan

Rev

Rev 30542 | Rev 31249 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.entity.user;

import java.time.LocalDateTime;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.spice.profitmandi.dao.enumuration.dtr.FranchiseeVisitStatus;

@Entity
@Table(name = "user.my_franchisee_visit", schema = "user")
public class FranchiseeVisit {

        @Id
        @Column(name = "id", unique = true, updatable = false)
        @GeneratedValue(strategy = GenerationType.IDENTITY)
        private int id;

        @Column(name = "fofo_id")
        private int fofoId;

        @Column(name = "partner_name")
        private String partnerName;

        public String getPartnerName() {
                return partnerName;
        }

        @Transient
        private FranchiseeActivity franchiseeActivity;

        @Column(name = "schedule_timestamp")
        private LocalDateTime scheduleTimestamp;

        @Column(name = "agenda")
        private String agenda;

        @Column(name = "partner_remark")
        private String partnerRemark;

        @Column(name = "outside_visibity")
        private String outsideVisibity;

        @Column(name = "instore_visibility")
        private String instoreVisibility;

        @Column(name = "outside_stock")
        private String outsideStock;

        @Column(name = "system_knowledge")
        private String systemKnowledge;

        @Column(name = "working_device")
        private String workingDevice;

        @Column(name = "working_printer")
        private String workingPrinter;

        @Column(name = "carry_bags")
        private String carryBags;

        @Column(name = "smartdukaan_tshirt")
        private String smartdukaanTshirt;

        @Column(name = "latest_dummies")
        private String latestDummies;

        @Column(name = "investment")
        private String investment;

        @Column(name = "mtd")
        private int mtd;

        @Column(name = "status")
        @Enumerated(EnumType.STRING)
        private FranchiseeVisitStatus status;

        @Column(name = "hygiene")
        private String hygiene;

        @Column(name = "created_timestamp")
        private LocalDateTime createdTimestamp;

        @Column(name = "pending_billing")
        private int pendingBilling;

        @Column(name = "informed_about_online")
        private String informedAboutOnline;

        @Column(name = "updated_timestamp")
        private LocalDateTime updatedTimestamp;

        @Column(name = "visit_timestamp")
        private LocalDateTime visitTimestamp;

        @Transient
        private List<String> brands;

        @Column(name = "franchise_activity_id")
        private int franchiseActivityId;

        @Column(name = "created_by")
        private String createdBy;

        @Column(name = "auth_id")
        private int authId;

        public LocalDateTime getScheduleTimestamp() {
                return scheduleTimestamp;
        }

        public void setScheduleTimestamp(LocalDateTime schelduleTimestamp) {
                this.scheduleTimestamp = schelduleTimestamp;
        }

        public List<String> getBrands() {
                return brands;
        }

        public void setBrands(List<String> brands) {
                this.brands = brands;
        }

        public FranchiseeVisitStatus getStatus() {
                return status;
        }

        public void setStatus(FranchiseeVisitStatus status) {
                this.status = status;
        }

        public FranchiseeActivity getFranchiseeActivity() {
                return franchiseeActivity;
        }

        public void setFranchiseeActivity(FranchiseeActivity franchiseeActivity) {
                this.franchiseeActivity = franchiseeActivity;
        }

        public int getPendingBilling() {
                return pendingBilling;
        }

        public LocalDateTime getVisitTimestamp() {
                return visitTimestamp;
        }

        public void setVisitTimestamp(LocalDateTime visitTimestamp) {
                this.visitTimestamp = visitTimestamp;
        }

        public void setPendingBilling(int pendingBilling) {
                this.pendingBilling = pendingBilling;
        }

        public String getInformedAboutOnline() {
                return informedAboutOnline;
        }

        public void setInformedAboutOnline(String informedAboutOnline) {
                this.informedAboutOnline = informedAboutOnline;
        }

        public void setPartnerName(String partnerName) {
                this.partnerName = partnerName;
        }

        public String getCreatedBy() {
                return createdBy;
        }

        public void setCreatedBy(String createdBy) {
                this.createdBy = createdBy;
        }

        public int getAuthId() {
                return authId;
        }

        public void setAuthId(int authId) {
                this.authId = authId;
        }

        public int getId() {
                return id;
        }

        public void setId(int id) {
                this.id = id;
        }

        public int getFofoId() {
                return fofoId;
        }

        public void setFofoId(int fofoId) {
                this.fofoId = fofoId;
        }

        public String getAgenda() {
                return agenda;
        }

        public void setAgenda(String agenda) {
                this.agenda = agenda;
        }

        public String getPartnerRemark() {
                return partnerRemark;
        }

        public void setPartnerRemark(String partnerRemark) {
                this.partnerRemark = partnerRemark;
        }

        public String getOutsideVisibity() {
                return outsideVisibity;
        }

        public void setOutsideVisibity(String outsideVisibity) {
                this.outsideVisibity = outsideVisibity;
        }

        public String getInstoreVisibility() {
                return instoreVisibility;
        }

        public void setInstoreVisibility(String instoreVisibility) {
                this.instoreVisibility = instoreVisibility;
        }

        public String getOutsideStock() {
                return outsideStock;
        }

        public void setOutsideStock(String outsideStock) {
                this.outsideStock = outsideStock;
        }

        public String getSystemKnowledge() {
                return systemKnowledge;
        }

        public void setSystemKnowledge(String systemKnowledge) {
                this.systemKnowledge = systemKnowledge;
        }

        public String getWorkingDevice() {
                return workingDevice;
        }

        public void setWorkingDevice(String workingDevice) {
                this.workingDevice = workingDevice;
        }

        public String getWorkingPrinter() {
                return workingPrinter;
        }

        public void setWorkingPrinter(String workingPrinter) {
                this.workingPrinter = workingPrinter;
        }

        public String getCarryBags() {
                return carryBags;
        }

        public void setCarryBags(String carryBags) {
                this.carryBags = carryBags;
        }

        public String getSmartdukaanTshirt() {
                return smartdukaanTshirt;
        }

        public void setSmartdukaanTshirt(String smartdukaanTshirt) {
                this.smartdukaanTshirt = smartdukaanTshirt;
        }

        public String getLatestDummies() {
                return latestDummies;
        }

        public void setLatestDummies(String latestDummies) {
                this.latestDummies = latestDummies;
        }

        public String getInvestment() {
                return investment;
        }

        public void setInvestment(String investment) {
                this.investment = investment;
        }

        public int getMtd() {
                return mtd;
        }

        public void setMtd(int mtd) {
                this.mtd = mtd;
        }

        public String getHygiene() {
                return hygiene;
        }

        public void setHygiene(String hygiene) {
                this.hygiene = hygiene;
        }

        public LocalDateTime getCreatedTimestamp() {
                return createdTimestamp;
        }

        public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
                this.createdTimestamp = createdTimestamp;
        }

        public LocalDateTime getUpdatedTimestamp() {
                return updatedTimestamp;
        }

        public void setUpdatedTimestamp(LocalDateTime updatedTimestamp) {
                this.updatedTimestamp = updatedTimestamp;
        }

        public int getFranchiseActivityId() {
                return franchiseActivityId;
        }

        public void setFranchiseActivityId(int franchiseActivityId) {
                this.franchiseActivityId = franchiseActivityId;
        }

        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + ((agenda == null) ? 0 : agenda.hashCode());
                result = prime * result + authId;
                result = prime * result + ((brands == null) ? 0 : brands.hashCode());
                result = prime * result + ((carryBags == null) ? 0 : carryBags.hashCode());
                result = prime * result + ((createdBy == null) ? 0 : createdBy.hashCode());
                result = prime * result + ((createdTimestamp == null) ? 0 : createdTimestamp.hashCode());
                result = prime * result + fofoId;
                result = prime * result + franchiseActivityId;
                result = prime * result + ((franchiseeActivity == null) ? 0 : franchiseeActivity.hashCode());
                result = prime * result + ((hygiene == null) ? 0 : hygiene.hashCode());
                result = prime * result + id;
                result = prime * result + ((informedAboutOnline == null) ? 0 : informedAboutOnline.hashCode());
                result = prime * result + ((instoreVisibility == null) ? 0 : instoreVisibility.hashCode());
                result = prime * result + ((investment == null) ? 0 : investment.hashCode());
                result = prime * result + ((latestDummies == null) ? 0 : latestDummies.hashCode());
                result = prime * result + mtd;
                result = prime * result + ((outsideStock == null) ? 0 : outsideStock.hashCode());
                result = prime * result + ((outsideVisibity == null) ? 0 : outsideVisibity.hashCode());
                result = prime * result + ((partnerName == null) ? 0 : partnerName.hashCode());
                result = prime * result + ((partnerRemark == null) ? 0 : partnerRemark.hashCode());
                result = prime * result + pendingBilling;
                result = prime * result + ((scheduleTimestamp == null) ? 0 : scheduleTimestamp.hashCode());
                result = prime * result + ((smartdukaanTshirt == null) ? 0 : smartdukaanTshirt.hashCode());
                result = prime * result + ((status == null) ? 0 : status.hashCode());
                result = prime * result + ((systemKnowledge == null) ? 0 : systemKnowledge.hashCode());
                result = prime * result + ((updatedTimestamp == null) ? 0 : updatedTimestamp.hashCode());
                result = prime * result + ((visitTimestamp == null) ? 0 : visitTimestamp.hashCode());
                result = prime * result + ((workingDevice == null) ? 0 : workingDevice.hashCode());
                result = prime * result + ((workingPrinter == null) ? 0 : workingPrinter.hashCode());
                return result;
        }

        @Override
        public boolean equals(Object obj) {
                if (this == obj)
                        return true;
                if (obj == null)
                        return false;
                if (getClass() != obj.getClass())
                        return false;
                FranchiseeVisit other = (FranchiseeVisit) obj;
                if (agenda == null) {
                        if (other.agenda != null)
                                return false;
                } else if (!agenda.equals(other.agenda))
                        return false;
                if (authId != other.authId)
                        return false;
                if (brands == null) {
                        if (other.brands != null)
                                return false;
                } else if (!brands.equals(other.brands))
                        return false;
                if (carryBags == null) {
                        if (other.carryBags != null)
                                return false;
                } else if (!carryBags.equals(other.carryBags))
                        return false;
                if (createdBy == null) {
                        if (other.createdBy != null)
                                return false;
                } else if (!createdBy.equals(other.createdBy))
                        return false;
                if (createdTimestamp == null) {
                        if (other.createdTimestamp != null)
                                return false;
                } else if (!createdTimestamp.equals(other.createdTimestamp))
                        return false;
                if (fofoId != other.fofoId)
                        return false;
                if (franchiseActivityId != other.franchiseActivityId)
                        return false;
                if (franchiseeActivity == null) {
                        if (other.franchiseeActivity != null)
                                return false;
                } else if (!franchiseeActivity.equals(other.franchiseeActivity))
                        return false;
                if (hygiene == null) {
                        if (other.hygiene != null)
                                return false;
                } else if (!hygiene.equals(other.hygiene))
                        return false;
                if (id != other.id)
                        return false;
                if (informedAboutOnline == null) {
                        if (other.informedAboutOnline != null)
                                return false;
                } else if (!informedAboutOnline.equals(other.informedAboutOnline))
                        return false;
                if (instoreVisibility == null) {
                        if (other.instoreVisibility != null)
                                return false;
                } else if (!instoreVisibility.equals(other.instoreVisibility))
                        return false;
                if (investment == null) {
                        if (other.investment != null)
                                return false;
                } else if (!investment.equals(other.investment))
                        return false;
                if (latestDummies == null) {
                        if (other.latestDummies != null)
                                return false;
                } else if (!latestDummies.equals(other.latestDummies))
                        return false;
                if (mtd != other.mtd)
                        return false;
                if (outsideStock == null) {
                        if (other.outsideStock != null)
                                return false;
                } else if (!outsideStock.equals(other.outsideStock))
                        return false;
                if (outsideVisibity == null) {
                        if (other.outsideVisibity != null)
                                return false;
                } else if (!outsideVisibity.equals(other.outsideVisibity))
                        return false;
                if (partnerName == null) {
                        if (other.partnerName != null)
                                return false;
                } else if (!partnerName.equals(other.partnerName))
                        return false;
                if (partnerRemark == null) {
                        if (other.partnerRemark != null)
                                return false;
                } else if (!partnerRemark.equals(other.partnerRemark))
                        return false;
                if (pendingBilling != other.pendingBilling)
                        return false;
                if (scheduleTimestamp == null) {
                        if (other.scheduleTimestamp != null)
                                return false;
                } else if (!scheduleTimestamp.equals(other.scheduleTimestamp))
                        return false;
                if (smartdukaanTshirt == null) {
                        if (other.smartdukaanTshirt != null)
                                return false;
                } else if (!smartdukaanTshirt.equals(other.smartdukaanTshirt))
                        return false;
                if (status != other.status)
                        return false;
                if (systemKnowledge == null) {
                        if (other.systemKnowledge != null)
                                return false;
                } else if (!systemKnowledge.equals(other.systemKnowledge))
                        return false;
                if (updatedTimestamp == null) {
                        if (other.updatedTimestamp != null)
                                return false;
                } else if (!updatedTimestamp.equals(other.updatedTimestamp))
                        return false;
                if (visitTimestamp == null) {
                        if (other.visitTimestamp != null)
                                return false;
                } else if (!visitTimestamp.equals(other.visitTimestamp))
                        return false;
                if (workingDevice == null) {
                        if (other.workingDevice != null)
                                return false;
                } else if (!workingDevice.equals(other.workingDevice))
                        return false;
                if (workingPrinter == null) {
                        if (other.workingPrinter != null)
                                return false;
                } else if (!workingPrinter.equals(other.workingPrinter))
                        return false;
                return true;
        }

        @Override
        public String toString() {
                return "FranchiseeVisit [id=" + id + ", fofoId=" + fofoId + ", partnerName=" + partnerName
                                + ", franchiseeActivity=" + franchiseeActivity + ", scheduleTimestamp=" + scheduleTimestamp
                                + ", agenda=" + agenda + ", partnerRemark=" + partnerRemark + ", outsideVisibity=" + outsideVisibity
                                + ", instoreVisibility=" + instoreVisibility + ", outsideStock=" + outsideStock + ", systemKnowledge="
                                + systemKnowledge + ", workingDevice=" + workingDevice + ", workingPrinter=" + workingPrinter
                                + ", carryBags=" + carryBags + ", smartdukaanTshirt=" + smartdukaanTshirt + ", latestDummies="
                                + latestDummies + ", investment=" + investment + ", mtd=" + mtd + ", status=" + status + ", hygiene="
                                + hygiene + ", createdTimestamp=" + createdTimestamp + ", pendingBilling=" + pendingBilling
                                + ", informedAboutOnline=" + informedAboutOnline + ", updatedTimestamp=" + updatedTimestamp
                                + ", visitTimestamp=" + visitTimestamp + ", brands=" + brands + ", franchiseActivityId="
                                + franchiseActivityId + ", createdBy=" + createdBy + ", authId=" + authId + "]";
        }

}