Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
34940 ranu 1
package com.spice.profitmandi.dao.entity.fofo;
2
 
3
import com.spice.profitmandi.dao.model.BrandCountByStatus;
4
import com.spice.profitmandi.dao.model.HidAllocationModel;
5
 
6
import javax.persistence.*;
7
import java.io.Serializable;
8
import java.time.LocalDate;
9
import java.util.Objects;
10
 
11
@Entity
12
@Table(name = "fofo.fofo_smart_cart_suggestion",
13
        uniqueConstraints = {@UniqueConstraint(columnNames = {"fofo_id", "catalog_id"})})
14
 
15
 
16
public class SmartCartSuggestion implements Serializable {
17
 
18
    @Id
19
    @Column(name = "id")
20
    @GeneratedValue(strategy = GenerationType.IDENTITY)
21
    private int id;
22
 
23
    @Column(name = "fofo_id")
24
    private int fofoId;
25
 
26
    @Column(name = "catalog_id")
27
    private int catalogId;
28
 
29
    @Column(name = "creation_date")
30
    private LocalDate creationDate;
31
 
32
    @Column(name = "sold_qty")
33
    private long soldQty;
34
 
35
    public int getId() {
36
        return id;
37
    }
38
 
39
    public void setId(int id) {
40
        this.id = id;
41
    }
42
 
43
    public int getFofoId() {
44
        return fofoId;
45
    }
46
 
47
    public void setFofoId(int fofoId) {
48
        this.fofoId = fofoId;
49
    }
50
 
51
    public int getCatalogId() {
52
        return catalogId;
53
    }
54
 
55
    public void setCatalogId(int catalogId) {
56
        this.catalogId = catalogId;
57
    }
58
 
59
    public LocalDate getCreationDate() {
60
        return creationDate;
61
    }
62
 
63
    public void setCreationDate(LocalDate creationDate) {
64
        this.creationDate = creationDate;
65
    }
66
 
67
    public long getSoldQty() {
68
        return soldQty;
69
    }
70
 
71
    public void setSoldQty(long soldQty) {
72
        this.soldQty = soldQty;
73
    }
74
 
75
    @Override
76
    public String toString() {
77
        return "SmartCartSuggestion{" +
78
                "id=" + id +
79
                ", fofoId=" + fofoId +
80
                ", catalogId=" + catalogId +
81
                ", creationDate=" + creationDate +
82
                ", soldQty=" + soldQty +
83
                '}';
84
    }
85
 
86
    @Override
87
    public boolean equals(Object o) {
88
        if (this == o) return true;
89
        if (o == null || getClass() != o.getClass()) return false;
90
        SmartCartSuggestion that = (SmartCartSuggestion) o;
91
        return id == that.id && fofoId == that.fofoId && catalogId == that.catalogId && soldQty == that.soldQty && Objects.equals(creationDate, that.creationDate);
92
    }
93
 
94
    @Override
95
    public int hashCode() {
96
        return Objects.hash(id, fofoId, catalogId, creationDate, soldQty);
97
    }
98
}