Rev 30996 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.fofo;import com.spice.profitmandi.dao.enumuration.transaction.SchemePayoutStatus;import javax.persistence.*;import java.time.LocalDateTime;import java.util.Objects;@Entity(name = "fofo.offer_payout")public class OfferPayout {@Id@GeneratedValue(strategy = GenerationType.IDENTITY)private long id;@Column(name = "fofo_id", nullable = false)private long fofoId;@Column(name = "offer_id", nullable = false)private long offerId;@Column(name = "criteria_id", nullable = false)private long criteriaId;@Column(name = "slab_amount", nullable = false)private double slabAmount;@Column(name = "serial_number", nullable = false)private String serialNumber;@Column(name = "amount", nullable = false)private double amount;@Column(name = "status", nullable = false)@Enumerated(EnumType.STRING)private SchemePayoutStatus status;@Column(name = "description", nullable = false)private String description;@Column(name = "create_timestamp", nullable = false)private LocalDateTime createTimestamp;public OfferPayout(long fofoId, long offerId, long criteriaId, double slabAmount, String serialNumber, double amount, SchemePayoutStatus status, String description, LocalDateTime createTimestamp) {this.fofoId = fofoId;this.offerId = offerId;this.criteriaId = criteriaId;this.slabAmount = slabAmount;this.serialNumber = serialNumber;this.amount = amount;this.status = status;this.description = description;this.createTimestamp = createTimestamp;}public OfferPayout() {}public LocalDateTime getCreateTimestamp() {return createTimestamp;}public void setCreateTimestamp(LocalDateTime createTimestamp) {this.createTimestamp = createTimestamp;}@Overridepublic boolean equals(Object o) {if (this == o) return true;if (o == null || getClass() != o.getClass()) return false;OfferPayout that = (OfferPayout) o;return id == that.id && fofoId == that.fofoId && offerId == that.offerId && criteriaId == that.criteriaId && Double.compare(that.slabAmount, slabAmount) == 0 && Double.compare(that.amount, amount) == 0 && Objects.equals(serialNumber, that.serialNumber) && status == that.status && Objects.equals(description, that.description) && Objects.equals(createTimestamp, that.createTimestamp);}@Overridepublic String toString() {return "OfferPayout{" +"id=" + id +", fofoId=" + fofoId +", offerId=" + offerId +", criteriaId=" + criteriaId +", slabAmount=" + slabAmount +", serialNumber='" + serialNumber + '\'' +", amount=" + amount +", status=" + status +", description='" + description + '\'' +", createTimestamp=" + createTimestamp +'}';}@Overridepublic int hashCode() {return Objects.hash(id, fofoId, offerId, criteriaId, slabAmount, serialNumber, amount, status, description, createTimestamp);}public long getId() {return id;}public void setId(long id) {this.id = id;}public long getFofoId() {return fofoId;}public void setFofoId(long fofoId) {this.fofoId = fofoId;}public long getOfferId() {return offerId;}public void setOfferId(long offerId) {this.offerId = offerId;}public long getCriteriaId() {return criteriaId;}public void setCriteriaId(long criteriaId) {this.criteriaId = criteriaId;}public double getSlabAmount() {return slabAmount;}public void setSlabAmount(double slabAmount) {this.slabAmount = slabAmount;}public String getSerialNumber() {return serialNumber;}public void setSerialNumber(String serialNumber) {this.serialNumber = serialNumber;}public double getAmount() {return amount;}public void setAmount(double amount) {this.amount = amount;}public SchemePayoutStatus getStatus() {return status;}public void setStatus(SchemePayoutStatus status) {this.status = status;}public String getDescription() {return description;}public void setDescription(String description) {this.description = description;}}