Rev 34940 | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.fofo;import com.spice.profitmandi.dao.model.BrandCountByStatus;import com.spice.profitmandi.dao.model.HidAllocationModel;import javax.persistence.*;import java.io.Serializable;import java.time.LocalDate;import java.util.Objects;@Entity@Table(name = "fofo.fofo_smart_cart_suggestion",uniqueConstraints = {@UniqueConstraint(columnNames = {"fofo_id", "catalog_id"})})public class SmartCartSuggestion implements Serializable {@Id@Column(name = "id")@GeneratedValue(strategy = GenerationType.IDENTITY)private int id;@Column(name = "fofo_id")private int fofoId;@Column(name = "catalog_id")private int catalogId;@Column(name = "creation_date")private LocalDate creationDate;@Column(name = "sold_qty")private long soldQty;@Column(name = "suggested_qty")private long suggestedQty;public int getId() {return id;}public void setId(int id) {this.id = id;}public int getFofoId() {return fofoId;}public void setFofoId(int fofoId) {this.fofoId = fofoId;}public int getCatalogId() {return catalogId;}public void setCatalogId(int catalogId) {this.catalogId = catalogId;}public LocalDate getCreationDate() {return creationDate;}public void setCreationDate(LocalDate creationDate) {this.creationDate = creationDate;}public long getSoldQty() {return soldQty;}public void setSoldQty(long soldQty) {this.soldQty = soldQty;}public long getSuggestedQty() {return suggestedQty;}public void setSuggestedQty(long suggestedQty) {this.suggestedQty = suggestedQty;}@Overridepublic String toString() {return "SmartCartSuggestion{" +"id=" + id +", fofoId=" + fofoId +", catalogId=" + catalogId +", creationDate=" + creationDate +", soldQty=" + soldQty +", suggestedQty=" + suggestedQty +'}';}@Overridepublic boolean equals(Object o) {if (this == o) return true;if (o == null || getClass() != o.getClass()) return false;SmartCartSuggestion that = (SmartCartSuggestion) o;return id == that.id && fofoId == that.fofoId && catalogId == that.catalogId && soldQty == that.soldQty && suggestedQty == that.suggestedQty && Objects.equals(creationDate, that.creationDate);}@Overridepublic int hashCode() {return Objects.hash(id, fofoId, catalogId, creationDate, soldQty, suggestedQty);}}