Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
33078 ranu 1
package com.spice.profitmandi.dao.entity.cs;
2
 
3
import com.spice.profitmandi.dao.entity.fofo.ActivityType;
4
 
5
import javax.persistence.*;
6
import java.time.LocalDateTime;
7
import java.time.format.DateTimeFormatter;
8
import java.util.Objects;
9
 
10
/**
11
 * @author Ranu
12
 *
13
 */
14
@Entity
15
@Table(name = "cs.non_sd_buying")
16
 
17
public class NonSdBuying {
18
 
19
    @Id
20
    @Column
21
    @GeneratedValue(strategy = GenerationType.IDENTITY)
22
    private int id;
23
 
24
    @Column(name = "fofoid")
25
    private int fofoId;
26
 
27
    @Column(name = "authid")
28
    private int authId;
29
 
30
    @Column(name = "createdTimestamp")
31
    private LocalDateTime createTimestamp;
32
 
33
    @Column(name = "brandValue")
34
    private int brandValue;
35
 
36
    @Column(name = "active")
37
    private boolean active;
38
 
39
    @Column(name = "brandId")
40
    private int brandId;
41
 
42
    @Column(name = "reason")
43
    private String reason;
44
 
45
    public int getId() {
46
        return id;
47
    }
48
 
49
    public void setId(int id) {
50
        this.id = id;
51
    }
52
 
53
    public int getFofoId() {
54
        return fofoId;
55
    }
56
 
57
    public void setFofoId(int fofoId) {
58
        this.fofoId = fofoId;
59
    }
60
 
61
    public int getAuthId() {
62
        return authId;
63
    }
64
 
65
    public void setAuthId(int authId) {
66
        this.authId = authId;
67
    }
68
 
69
    public LocalDateTime getCreateTimestamp() {
70
        return createTimestamp;
71
    }
72
 
73
    public void setCreateTimestamp(LocalDateTime createTimestamp) {
74
        this.createTimestamp = createTimestamp;
75
    }
76
 
77
    public int getBrandValue() {
78
        return brandValue;
79
    }
80
 
81
    public void setBrandValue(int brandValue) {
82
        this.brandValue = brandValue;
83
    }
84
 
85
    public boolean isActive() {
86
        return active;
87
    }
88
 
89
    public void setActive(boolean active) {
90
        this.active = active;
91
    }
92
 
93
    public int getBrandId() {
94
        return brandId;
95
    }
96
 
97
    public void setBrandId(int brandId) {
98
        this.brandId = brandId;
99
    }
100
 
101
    public String getReason() {
102
        return reason;
103
    }
104
 
105
    public void setReason(String reason) {
106
        this.reason = reason;
107
    }
108
 
109
    @Override
110
    public boolean equals(Object o) {
111
        if (this == o) return true;
112
        if (o == null || getClass() != o.getClass()) return false;
113
        NonSdBuying that = (NonSdBuying) o;
114
        return id == that.id && fofoId == that.fofoId && authId == that.authId && brandValue == that.brandValue && active == that.active && Objects.equals(createTimestamp, that.createTimestamp) && Objects.equals(brandId, that.brandId) && Objects.equals(reason, that.reason);
115
    }
116
 
117
    @Override
118
    public int hashCode() {
119
        return Objects.hash(id, fofoId, authId, createTimestamp, brandValue, active, brandId, reason);
120
    }
121
 
122
    @Override
123
    public String toString() {
124
        return "NonSdBuying{" +
125
                "id=" + id +
126
                ", fofoId=" + fofoId +
127
                ", authId=" + authId +
128
                ", createTimestamp=" + createTimestamp +
129
                ", brandValue=" + brandValue +
130
                ", active=" + active +
131
                ", brandId='" + brandId + '\'' +
132
                ", reason='" + reason + '\'' +
133
                '}';
134
    }
135
}