| 35104 |
vikas |
1 |
package com.spice.profitmandi.dao.entity;
|
|
|
2 |
|
|
|
3 |
import javax.persistence.*;
|
|
|
4 |
import java.math.BigDecimal;
|
|
|
5 |
import java.util.Objects;
|
|
|
6 |
|
|
|
7 |
@Entity
|
|
|
8 |
@Table(name = "fofo.brand_sales_rewards")
|
|
|
9 |
public class BrandSalesRewards {
|
|
|
10 |
@Id
|
|
|
11 |
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
12 |
private Integer id;
|
|
|
13 |
|
|
|
14 |
@Column(name = "brand", nullable = false, length = 50)
|
|
|
15 |
private String brand;
|
|
|
16 |
|
|
|
17 |
@Column(name = "sales_score", nullable = false)
|
|
|
18 |
private Integer salesScore;
|
|
|
19 |
|
|
|
20 |
@Column(name = "reward_name", nullable = false, length = 255)
|
|
|
21 |
private String rewardName;
|
|
|
22 |
|
|
|
23 |
@Column(name = "qty", nullable = false, length = 50)
|
|
|
24 |
private String qty;
|
|
|
25 |
|
|
|
26 |
@Column(name = "reward_value", nullable = false, precision = 12, scale = 2)
|
|
|
27 |
private BigDecimal rewardValue;
|
|
|
28 |
|
|
|
29 |
@Column(name = "per_point_bonus", nullable = false)
|
|
|
30 |
private Integer perPointBonus;
|
|
|
31 |
|
|
|
32 |
@Column(name = "region_id", nullable = false)
|
|
|
33 |
private Integer regionId;
|
|
|
34 |
|
|
|
35 |
public Integer getId() { return id; }
|
|
|
36 |
public void setId(Integer id) { this.id = id; }
|
|
|
37 |
|
|
|
38 |
public String getBrand() { return brand; }
|
|
|
39 |
public void setBrand(String brand) { this.brand = brand; }
|
|
|
40 |
|
|
|
41 |
public Integer getSalesScore() { return salesScore; }
|
|
|
42 |
public void setSalesScore(Integer salesScore) { this.salesScore = salesScore; }
|
|
|
43 |
|
|
|
44 |
public String getRewardName() { return rewardName; }
|
|
|
45 |
public void setRewardName(String rewardName) { this.rewardName = rewardName; }
|
|
|
46 |
|
|
|
47 |
public String getQty() { return qty; }
|
|
|
48 |
public void setQty(String qty) { this.qty = qty; }
|
|
|
49 |
|
|
|
50 |
public BigDecimal getRewardValue() { return rewardValue; }
|
|
|
51 |
public void setRewardValue(BigDecimal rewardValue) { this.rewardValue = rewardValue; }
|
|
|
52 |
|
|
|
53 |
public Integer getPerPointBonus() { return perPointBonus; }
|
|
|
54 |
public void setPerPointBonus(Integer perPointBonus) { this.perPointBonus = perPointBonus; }
|
|
|
55 |
|
|
|
56 |
public Integer getRegionId() {
|
|
|
57 |
return regionId;
|
|
|
58 |
}
|
|
|
59 |
|
|
|
60 |
public void setRegionId(Integer regionId) {
|
|
|
61 |
this.regionId = regionId;
|
|
|
62 |
}
|
|
|
63 |
|
|
|
64 |
@Override
|
|
|
65 |
public boolean equals(Object o) {
|
|
|
66 |
if (!(o instanceof BrandSalesRewards)) return false;
|
|
|
67 |
BrandSalesRewards that = (BrandSalesRewards) o;
|
|
|
68 |
return Objects.equals(id, that.id) && Objects.equals(brand, that.brand) && Objects.equals(salesScore, that.salesScore) && Objects.equals(rewardName, that.rewardName) && Objects.equals(qty, that.qty) && Objects.equals(rewardValue, that.rewardValue) && Objects.equals(perPointBonus, that.perPointBonus) && Objects.equals(regionId, that.regionId);
|
|
|
69 |
}
|
|
|
70 |
|
|
|
71 |
@Override
|
|
|
72 |
public int hashCode() {
|
|
|
73 |
return Objects.hash(id, brand, salesScore, rewardName, qty, rewardValue, perPointBonus, regionId);
|
|
|
74 |
}
|
|
|
75 |
|
|
|
76 |
@Override
|
|
|
77 |
public String toString() {
|
|
|
78 |
return "BrandSalesRewards{" +
|
|
|
79 |
"id=" + id +
|
|
|
80 |
", brand='" + brand + '\'' +
|
|
|
81 |
", salesScore=" + salesScore +
|
|
|
82 |
", rewardName='" + rewardName + '\'' +
|
|
|
83 |
", qty='" + qty + '\'' +
|
|
|
84 |
", rewardValue=" + rewardValue +
|
|
|
85 |
", perPointBonus=" + perPointBonus +
|
|
|
86 |
", regionId=" + regionId +
|
|
|
87 |
'}';
|
|
|
88 |
}
|
|
|
89 |
}
|