Subversion Repositories SmartDukaan

Rev

Rev 34940 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34940 Rev 34941
Line 30... Line 30...
30
    private LocalDate creationDate;
30
    private LocalDate creationDate;
31
 
31
 
32
    @Column(name = "sold_qty")
32
    @Column(name = "sold_qty")
33
    private long soldQty;
33
    private long soldQty;
34
 
34
 
-
 
35
    @Column(name = "suggested_qty")
-
 
36
    private long suggestedQty;
-
 
37
 
35
    public int getId() {
38
    public int getId() {
36
        return id;
39
        return id;
37
    }
40
    }
38
 
41
 
39
    public void setId(int id) {
42
    public void setId(int id) {
Line 70... Line 73...
70
 
73
 
71
    public void setSoldQty(long soldQty) {
74
    public void setSoldQty(long soldQty) {
72
        this.soldQty = soldQty;
75
        this.soldQty = soldQty;
73
    }
76
    }
74
 
77
 
-
 
78
    public long getSuggestedQty() {
-
 
79
        return suggestedQty;
-
 
80
    }
-
 
81
 
-
 
82
    public void setSuggestedQty(long suggestedQty) {
-
 
83
        this.suggestedQty = suggestedQty;
-
 
84
    }
-
 
85
 
75
    @Override
86
    @Override
76
    public String toString() {
87
    public String toString() {
77
        return "SmartCartSuggestion{" +
88
        return "SmartCartSuggestion{" +
78
                "id=" + id +
89
                "id=" + id +
79
                ", fofoId=" + fofoId +
90
                ", fofoId=" + fofoId +
80
                ", catalogId=" + catalogId +
91
                ", catalogId=" + catalogId +
81
                ", creationDate=" + creationDate +
92
                ", creationDate=" + creationDate +
82
                ", soldQty=" + soldQty +
93
                ", soldQty=" + soldQty +
-
 
94
                ", suggestedQty=" + suggestedQty +
83
                '}';
95
                '}';
84
    }
96
    }
85
 
97
 
86
    @Override
98
    @Override
87
    public boolean equals(Object o) {
99
    public boolean equals(Object o) {
88
        if (this == o) return true;
100
        if (this == o) return true;
89
        if (o == null || getClass() != o.getClass()) return false;
101
        if (o == null || getClass() != o.getClass()) return false;
90
        SmartCartSuggestion that = (SmartCartSuggestion) o;
102
        SmartCartSuggestion that = (SmartCartSuggestion) o;
91
        return id == that.id && fofoId == that.fofoId && catalogId == that.catalogId && soldQty == that.soldQty && Objects.equals(creationDate, that.creationDate);
103
        return id == that.id && fofoId == that.fofoId && catalogId == that.catalogId && soldQty == that.soldQty && suggestedQty == that.suggestedQty && Objects.equals(creationDate, that.creationDate);
92
    }
104
    }
93
 
105
 
94
    @Override
106
    @Override
95
    public int hashCode() {
107
    public int hashCode() {
96
        return Objects.hash(id, fofoId, catalogId, creationDate, soldQty);
108
        return Objects.hash(id, fofoId, catalogId, creationDate, soldQty, suggestedQty);
97
    }
109
    }
98
}
110
}