Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
34443 vikas.jang 1
package com.spice.profitmandi.dao.entity.catalog;
2
 
3
import com.spice.profitmandi.common.model.ProfitMandiConstants;
4
import com.spice.profitmandi.dao.entity.dtr.User;
5
import com.spice.profitmandi.service.catalog.BiddingModel;
6
 
7
import javax.persistence.*;
8
import java.math.BigDecimal;
9
import java.time.LocalDateTime;
10
 
11
@Entity
12
@Table(name = "fofo.bids")
13
 
14
public class Bid {
15
    @Id
16
    @GeneratedValue(strategy = GenerationType.IDENTITY)
17
    @Column(name = "id")
18
    private int id;
19
 
20
    @Column(name = "liquidation_id")
21
    private Integer liquidationId;
22
 
23
    @Column(name = "amount", precision = 10, scale = 2)
24
    private float biddingAmount;
25
 
26
    @Column(name = "item_name")
27
    private String itemName;
28
 
29
    @Column(name = "quantity")
30
    private int quantity;
31
 
32
    @Column(name = "fofo_id")
33
    private Integer fofoId;
34
 
35
    @Enumerated(EnumType.STRING)
36
    private ProfitMandiConstants.BID_ENUM status = ProfitMandiConstants.BID_ENUM.PENDING;
37
 
38
    @Column(name = "created_at", updatable = false)
39
    private LocalDateTime createdAt;
40
 
41
    public int getId() {
42
        return id;
43
    }
44
 
45
    public void setId(int id) {
46
        this.id = id;
47
    }
48
 
49
    public Integer getLiquidationId() {
50
        return liquidationId;
51
    }
52
 
53
    public void setLiquidationId(Integer liquidationId) {
54
        this.liquidationId = liquidationId;
55
    }
56
 
57
    public float getBiddingAmount() {
58
        return biddingAmount;
59
    }
60
 
61
    public void setBiddingAmount(float biddingAmount) {
62
        this.biddingAmount = biddingAmount;
63
    }
64
 
65
    public String getItemName() {
66
        return itemName;
67
    }
68
 
69
    public void setItemName(String itemName) {
70
        this.itemName = itemName;
71
    }
72
 
73
    public int getQuantity() {
74
        return quantity;
75
    }
76
 
77
    public void setQuantity(int quantity) {
78
        this.quantity = quantity;
79
    }
80
 
81
    public Integer getFofoId() {
82
        return fofoId;
83
    }
84
 
85
    public void setFofoId(Integer fofoId) {
86
        this.fofoId = fofoId;
87
    }
88
 
89
    public LocalDateTime getCreatedAt() {
90
        return createdAt;
91
    }
92
 
93
    public void setCreatedAt(LocalDateTime createdAt) {
94
        this.createdAt = createdAt;
95
    }
96
 
97
    public ProfitMandiConstants.BID_ENUM getStatus() {
98
        return status;
99
    }
100
 
101
    public void setStatus(ProfitMandiConstants.BID_ENUM status) {
102
        this.status = status;
103
    }
104
 
105
    @Override
106
    public String toString() {
107
        return "Bid{" +
108
                "id=" + id +
109
                ", liquidationId=" + liquidationId +
110
                ", biddingAmount=" + biddingAmount +
111
                ", itemName='" + itemName + '\'' +
112
                ", quantity=" + quantity +
113
                ", fofoId=" + fofoId +
114
                ", createdAt=" + createdAt +
115
                ", status=" + status +
116
                '}';
117
    }
118
}