| 35247 |
vikas |
1 |
package com.spice.profitmandi.dao.entity;
|
|
|
2 |
|
|
|
3 |
import javax.persistence.*;
|
|
|
4 |
import java.util.Objects;
|
|
|
5 |
|
|
|
6 |
@Entity
|
|
|
7 |
@Table(name = "fofo.store_sales")
|
|
|
8 |
public class StoreSalesTarget {
|
|
|
9 |
|
|
|
10 |
@Id
|
|
|
11 |
@Column(name = "fofo_id")
|
|
|
12 |
private Long fofoId;
|
|
|
13 |
|
|
|
14 |
@Column(name = "last_month_sale", nullable = false)
|
|
|
15 |
private Integer lastMonthSale;
|
|
|
16 |
|
|
|
17 |
@Column(name = "led_tv_32_inch", nullable = false)
|
|
|
18 |
private Integer ledTv32Inch;
|
|
|
19 |
|
|
|
20 |
@Column(name = "silver_brick_100g", nullable = false)
|
|
|
21 |
private Integer silverBrick100g;
|
|
|
22 |
|
|
|
23 |
@Column(name = "domestic_goa_trip", nullable = false)
|
|
|
24 |
private Integer domesticGoaTrip;
|
|
|
25 |
|
|
|
26 |
@Column(name = "international_thailand_trip", nullable = false)
|
|
|
27 |
private Integer internationalThailandTrip;
|
|
|
28 |
|
|
|
29 |
public Long getFofoId() {
|
|
|
30 |
return fofoId;
|
|
|
31 |
}
|
|
|
32 |
|
|
|
33 |
public void setFofoId(Long fofoId) {
|
|
|
34 |
this.fofoId = fofoId;
|
|
|
35 |
}
|
|
|
36 |
|
|
|
37 |
public Integer getLastMonthSale() {
|
|
|
38 |
return lastMonthSale;
|
|
|
39 |
}
|
|
|
40 |
|
|
|
41 |
public void setLastMonthSale(Integer lastMonthSale) {
|
|
|
42 |
this.lastMonthSale = lastMonthSale;
|
|
|
43 |
}
|
|
|
44 |
|
|
|
45 |
public Integer getLedTv32Inch() {
|
|
|
46 |
return ledTv32Inch;
|
|
|
47 |
}
|
|
|
48 |
|
|
|
49 |
public void setLedTv32Inch(Integer ledTv32Inch) {
|
|
|
50 |
this.ledTv32Inch = ledTv32Inch;
|
|
|
51 |
}
|
|
|
52 |
|
|
|
53 |
public Integer getSilverBrick100g() {
|
|
|
54 |
return silverBrick100g;
|
|
|
55 |
}
|
|
|
56 |
|
|
|
57 |
public void setSilverBrick100g(Integer silverBrick100g) {
|
|
|
58 |
this.silverBrick100g = silverBrick100g;
|
|
|
59 |
}
|
|
|
60 |
|
|
|
61 |
public Integer getDomesticGoaTrip() {
|
|
|
62 |
return domesticGoaTrip;
|
|
|
63 |
}
|
|
|
64 |
|
|
|
65 |
public void setDomesticGoaTrip(Integer domesticGoaTrip) {
|
|
|
66 |
this.domesticGoaTrip = domesticGoaTrip;
|
|
|
67 |
}
|
|
|
68 |
|
|
|
69 |
public Integer getInternationalThailandTrip() {
|
|
|
70 |
return internationalThailandTrip;
|
|
|
71 |
}
|
|
|
72 |
|
|
|
73 |
public void setInternationalThailandTrip(Integer internationalThailandTrip) {
|
|
|
74 |
this.internationalThailandTrip = internationalThailandTrip;
|
|
|
75 |
}
|
|
|
76 |
|
|
|
77 |
@Override
|
|
|
78 |
public boolean equals(Object o) {
|
|
|
79 |
if (!(o instanceof StoreSalesTarget)) return false;
|
|
|
80 |
StoreSalesTarget that = (StoreSalesTarget) o;
|
|
|
81 |
return Objects.equals(fofoId, that.fofoId)
|
|
|
82 |
&& Objects.equals(lastMonthSale, that.lastMonthSale)
|
|
|
83 |
&& Objects.equals(ledTv32Inch, that.ledTv32Inch)
|
|
|
84 |
&& Objects.equals(silverBrick100g, that.silverBrick100g)
|
|
|
85 |
&& Objects.equals(domesticGoaTrip, that.domesticGoaTrip)
|
|
|
86 |
&& Objects.equals(internationalThailandTrip, that.internationalThailandTrip);
|
|
|
87 |
}
|
|
|
88 |
|
|
|
89 |
@Override
|
|
|
90 |
public int hashCode() {
|
|
|
91 |
return Objects.hash(fofoId, lastMonthSale, ledTv32Inch, silverBrick100g, domesticGoaTrip, internationalThailandTrip);
|
|
|
92 |
}
|
|
|
93 |
}
|