Subversion Repositories SmartDukaan

Rev

Rev 33715 | Rev 33719 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
33715 ranu 1
package com.spice.profitmandi.dao.entity.fofo;
2
 
3
import javax.persistence.*;
4
import java.io.Serializable;
5
import java.time.LocalDateTime;
6
import java.util.Objects;
7
 
8
/**
9
 * @author amit
10
 */
11
@Entity
12
@Table(name = "fofo.upSaleOrder")
13
public class UpSaleOrder implements Serializable {
14
 
15
 
16
    private static final long serialVersionUID = 1L;
17
    @Id
18
    @Column(name = "id")
19
    @GeneratedValue(strategy = GenerationType.IDENTITY)
20
    private int id;
21
 
22
    @Column(name = "orderId")
23
    private int orderId;
24
 
33717 ranu 25
    @Column(name = "fofoId")
26
    private int fofoId;
27
 
33715 ranu 28
    @Column(name = "create_timestamp")
29
    private LocalDateTime createdTimestamp = LocalDateTime.now();
30
 
31
    public int getId() {
32
        return id;
33
    }
34
 
35
    public void setId(int id) {
36
        this.id = id;
37
    }
38
 
39
    public int getOrderId() {
40
        return orderId;
41
    }
42
 
43
    public void setOrderId(int orderId) {
44
        this.orderId = orderId;
45
    }
46
 
47
    public LocalDateTime getCreatedTimestamp() {
48
        return createdTimestamp;
49
    }
50
 
51
    public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
52
        this.createdTimestamp = createdTimestamp;
53
    }
54
 
33717 ranu 55
    public int getFofoId() {
56
        return fofoId;
57
    }
58
 
59
    public void setFofoId(int fofoId) {
60
        this.fofoId = fofoId;
61
    }
62
 
33715 ranu 63
    @Override
64
    public String toString() {
65
        return "UpSaleOrder{" +
66
                "id=" + id +
67
                ", orderId=" + orderId +
33717 ranu 68
                ", fofoId=" + fofoId +
33715 ranu 69
                ", createdTimestamp=" + createdTimestamp +
70
                '}';
71
    }
72
 
73
    @Override
74
    public boolean equals(Object o) {
75
        if (this == o) return true;
76
        if (o == null || getClass() != o.getClass()) return false;
77
        UpSaleOrder that = (UpSaleOrder) o;
33717 ranu 78
        return id == that.id && orderId == that.orderId && fofoId == that.fofoId && Objects.equals(createdTimestamp, that.createdTimestamp);
33715 ranu 79
    }
80
 
81
    @Override
82
    public int hashCode() {
33717 ranu 83
        return Objects.hash(id, orderId, fofoId, createdTimestamp);
33715 ranu 84
    }
85
}