Subversion Repositories SmartDukaan

Rev

Rev 33715 | Rev 33719 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33715 Rev 33717
Line 20... Line 20...
20
    private int id;
20
    private int id;
21
 
21
 
22
    @Column(name = "orderId")
22
    @Column(name = "orderId")
23
    private int orderId;
23
    private int orderId;
24
 
24
 
-
 
25
    @Column(name = "fofoId")
-
 
26
    private int fofoId;
-
 
27
 
25
    @Column(name = "create_timestamp")
28
    @Column(name = "create_timestamp")
26
    private LocalDateTime createdTimestamp = LocalDateTime.now();
29
    private LocalDateTime createdTimestamp = LocalDateTime.now();
27
 
30
 
28
    public int getId() {
31
    public int getId() {
29
        return id;
32
        return id;
Line 47... Line 50...
47
 
50
 
48
    public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
51
    public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
49
        this.createdTimestamp = createdTimestamp;
52
        this.createdTimestamp = createdTimestamp;
50
    }
53
    }
51
 
54
 
-
 
55
    public int getFofoId() {
-
 
56
        return fofoId;
-
 
57
    }
-
 
58
 
-
 
59
    public void setFofoId(int fofoId) {
-
 
60
        this.fofoId = fofoId;
-
 
61
    }
-
 
62
 
52
    @Override
63
    @Override
53
    public String toString() {
64
    public String toString() {
54
        return "UpSaleOrder{" +
65
        return "UpSaleOrder{" +
55
                "id=" + id +
66
                "id=" + id +
56
                ", orderId=" + orderId +
67
                ", orderId=" + orderId +
-
 
68
                ", fofoId=" + fofoId +
57
                ", createdTimestamp=" + createdTimestamp +
69
                ", createdTimestamp=" + createdTimestamp +
58
                '}';
70
                '}';
59
    }
71
    }
60
 
72
 
61
    @Override
73
    @Override
62
    public boolean equals(Object o) {
74
    public boolean equals(Object o) {
63
        if (this == o) return true;
75
        if (this == o) return true;
64
        if (o == null || getClass() != o.getClass()) return false;
76
        if (o == null || getClass() != o.getClass()) return false;
65
        UpSaleOrder that = (UpSaleOrder) o;
77
        UpSaleOrder that = (UpSaleOrder) o;
66
        return id == that.id && orderId == that.orderId && Objects.equals(createdTimestamp, that.createdTimestamp);
78
        return id == that.id && orderId == that.orderId && fofoId == that.fofoId && Objects.equals(createdTimestamp, that.createdTimestamp);
67
    }
79
    }
68
 
80
 
69
    @Override
81
    @Override
70
    public int hashCode() {
82
    public int hashCode() {
71
        return Objects.hash(id, orderId, createdTimestamp);
83
        return Objects.hash(id, orderId, fofoId, createdTimestamp);
72
    }
84
    }
73
}
85
}