Subversion Repositories SmartDukaan

Rev

Rev 31860 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

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

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

import javax.persistence.*;
import java.time.LocalDateTime;

@Entity
@Table(name = "user.lead_activity")
public class LeadActivity {

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

        @Column(name = "lead_id")
        private int leadId;

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

        @Column(name = "closure_timestamp")
        private LocalDateTime closureTimestamp;

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

        @Column(name = "communication_type")
        @Enumerated(EnumType.STRING)
        private CommunicationType communicationType;

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

        @Column(name = "potential")
        private double potential;

        @Column(name = "outlet_name")
        private String outletName;

        public LocalDateTime getClosureTimestamp() {
                return closureTimestamp;
        }

        public void setClosureTimestamp(LocalDateTime closureTimestamp) {
                this.closureTimestamp = closureTimestamp;
        }

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

        public int getId() {
                return id;
        }

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

        public int getLeadId() {
                return leadId;
        }

        public void setLeadId(int leadId) {
                this.leadId = leadId;
        }

        public LocalDateTime getSchelduleTimestamp() {
                return schelduleTimestamp;
        }

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

        public CommunicationType getCommunicationType() {
                return communicationType;
        }

        public void setCommunicationType(CommunicationType communicationType) {
                this.communicationType = communicationType;
        }

        public int getAuthId() {
                return authId;
        }

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

        public String getRemark() {
                return remark;
        }

        public void setRemark(String remark) {
                this.remark = remark;
        }

        public LocalDateTime getCreatedTimestamp() {
                return createdTimestamp;
        }

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

        public double getPotential() {
                return potential;
        }

        public void setPotential(double potential) {
                this.potential = potential;
        }

        public String getOutletName() {
                return outletName;
        }

        public void setOutletName(String outletName) {
                this.outletName = outletName;
        }

        @Override
        public String toString() {
                return "LeadActivity{" +
                                "id=" + id +
                                ", leadId=" + leadId +
                                ", schelduleTimestamp=" + schelduleTimestamp +
                                ", closureTimestamp=" + closureTimestamp +
                                ", remark='" + remark + '\'' +
                                ", communicationType=" + communicationType +
                                ", authId=" + authId +
                                ", potential=" + potential +
                                ", outletName='" + outletName + '\'' +
                                ", createdTimestamp=" + createdTimestamp +
                                '}';
        }
}