Blame | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.catalog;import com.spice.profitmandi.common.model.ProfitMandiConstants;import com.spice.profitmandi.dao.entity.dtr.User;import com.spice.profitmandi.service.catalog.BiddingModel;import javax.persistence.*;import java.math.BigDecimal;import java.time.LocalDateTime;@Entity@Table(name = "fofo.bids")public class Bid {@Id@GeneratedValue(strategy = GenerationType.IDENTITY)@Column(name = "id")private int id;@Column(name = "liquidation_id")private Integer liquidationId;@Column(name = "amount", precision = 10, scale = 2)private float biddingAmount;@Column(name = "item_name")private String itemName;@Column(name = "quantity")private int quantity;@Column(name = "fofo_id")private Integer fofoId;@Enumerated(EnumType.STRING)private ProfitMandiConstants.BID_ENUM status = ProfitMandiConstants.BID_ENUM.PENDING;@Column(name = "created_at", updatable = false)private LocalDateTime createdAt;public int getId() {return id;}public void setId(int id) {this.id = id;}public Integer getLiquidationId() {return liquidationId;}public void setLiquidationId(Integer liquidationId) {this.liquidationId = liquidationId;}public float getBiddingAmount() {return biddingAmount;}public void setBiddingAmount(float biddingAmount) {this.biddingAmount = biddingAmount;}public String getItemName() {return itemName;}public void setItemName(String itemName) {this.itemName = itemName;}public int getQuantity() {return quantity;}public void setQuantity(int quantity) {this.quantity = quantity;}public Integer getFofoId() {return fofoId;}public void setFofoId(Integer fofoId) {this.fofoId = fofoId;}public LocalDateTime getCreatedAt() {return createdAt;}public void setCreatedAt(LocalDateTime createdAt) {this.createdAt = createdAt;}public ProfitMandiConstants.BID_ENUM getStatus() {return status;}public void setStatus(ProfitMandiConstants.BID_ENUM status) {this.status = status;}@Overridepublic String toString() {return "Bid{" +"id=" + id +", liquidationId=" + liquidationId +", biddingAmount=" + biddingAmount +", itemName='" + itemName + '\'' +", quantity=" + quantity +", fofoId=" + fofoId +", createdAt=" + createdAt +", status=" + status +'}';}}