| 35104 |
vikas |
1 |
package com.spice.profitmandi.dao.entity;
|
|
|
2 |
|
|
|
3 |
import javax.persistence.*;
|
|
|
4 |
import java.time.LocalDateTime;
|
|
|
5 |
import java.math.BigDecimal;
|
|
|
6 |
import java.util.Objects;
|
|
|
7 |
|
|
|
8 |
@Entity
|
|
|
9 |
@Table(name = "fofo.sale_reward_history")
|
|
|
10 |
public class SaleRewardHistory {
|
|
|
11 |
|
|
|
12 |
@Id
|
|
|
13 |
@Column
|
|
|
14 |
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
15 |
private Integer id;
|
|
|
16 |
|
|
|
17 |
@Column(name = "fofo_id", nullable = false)
|
|
|
18 |
private Integer fofoId;
|
|
|
19 |
|
|
|
20 |
@Column(name = "order_id", nullable = false)
|
|
|
21 |
private Integer orderId;
|
|
|
22 |
|
|
|
23 |
@Column(name = "catalog_id", nullable = false)
|
|
|
24 |
private Integer catalogId;
|
|
|
25 |
|
|
|
26 |
@Column(name = "qty", nullable = false)
|
|
|
27 |
private Integer qty;
|
|
|
28 |
|
|
|
29 |
@Column(name = "point_earned", nullable = false, precision = 6, scale = 2)
|
|
|
30 |
private BigDecimal pointEarned;
|
|
|
31 |
|
|
|
32 |
@Column(name = "imeis", nullable = false, length = 50)
|
|
|
33 |
private String imeis;
|
|
|
34 |
|
|
|
35 |
@Column(name = "created_at", nullable = false, updatable = false)
|
|
|
36 |
private LocalDateTime createdAt = LocalDateTime.now();
|
|
|
37 |
|
|
|
38 |
|
|
|
39 |
public Integer getId() { return id; }
|
|
|
40 |
public void setId(Integer id) { this.id = id; }
|
|
|
41 |
|
|
|
42 |
public Integer getFofoId() { return fofoId; }
|
|
|
43 |
public void setFofoId(Integer fofoId) { this.fofoId = fofoId; }
|
|
|
44 |
|
|
|
45 |
public Integer getOrderId() { return orderId; }
|
|
|
46 |
public void setOrderId(Integer orderId) { this.orderId = orderId; }
|
|
|
47 |
|
|
|
48 |
public Integer getCatalogId() { return catalogId; }
|
|
|
49 |
public void setCatalogId(Integer catalogId) { this.catalogId = catalogId; }
|
|
|
50 |
|
|
|
51 |
public Integer getQty() { return qty; }
|
|
|
52 |
public void setQty(Integer qty) { this.qty = qty; }
|
|
|
53 |
|
|
|
54 |
public BigDecimal getPointEarned() { return pointEarned; }
|
|
|
55 |
public void setPointEarned(BigDecimal pointEarned) { this.pointEarned = pointEarned; }
|
|
|
56 |
|
|
|
57 |
public String getImeis() { return imeis; }
|
|
|
58 |
public void setImeis(String imeis) { this.imeis = imeis; }
|
|
|
59 |
|
|
|
60 |
public LocalDateTime getCreatedAt() { return createdAt; }
|
|
|
61 |
public void setCreatedAt(LocalDateTime createdAt) { this.createdAt = createdAt; }
|
|
|
62 |
|
|
|
63 |
@Override
|
|
|
64 |
public boolean equals(Object o) {
|
|
|
65 |
if (!(o instanceof SaleRewardHistory)) return false;
|
|
|
66 |
SaleRewardHistory that = (SaleRewardHistory) o;
|
|
|
67 |
return Objects.equals(id, that.id) && Objects.equals(fofoId, that.fofoId) && Objects.equals(orderId, that.orderId) && Objects.equals(catalogId, that.catalogId) && Objects.equals(qty, that.qty) && Objects.equals(pointEarned, that.pointEarned) && Objects.equals(imeis, that.imeis) && Objects.equals(createdAt, that.createdAt);
|
|
|
68 |
}
|
|
|
69 |
|
|
|
70 |
@Override
|
|
|
71 |
public int hashCode() {
|
|
|
72 |
return Objects.hash(id, fofoId, orderId, catalogId, qty, pointEarned, imeis, createdAt);
|
|
|
73 |
}
|
|
|
74 |
}
|