Rev 34163 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.fofo;import javax.persistence.*;import java.io.Serializable;import java.time.LocalDate;import java.util.Objects;@Entity@Table(name = "fofo.fofo_opening_stock",uniqueConstraints = {@UniqueConstraint(columnNames = {"fofo_id", "catalog_id"})})public class FofoOpeningStock 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 = "opening_date")private LocalDate openingDate;@Column(name = "opening_qty")private int openingQty;@Column(name = "current_qty")private int currentQty;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 getOpeningDate() {return openingDate;}public void setOpeningDate(LocalDate openingDate) {this.openingDate = openingDate;}public int getOpeningQty() {return openingQty;}public void setOpeningQty(int openingQty) {this.openingQty = openingQty;}public int getCurrentQty() {return currentQty;}public void setCurrentQty(int currentQty) {this.currentQty = currentQty;}@Overridepublic String toString() {return "FofoOpeningStock{" +"id=" + id +", fofoId=" + fofoId +", catalogId=" + catalogId +", openingDate=" + openingDate +", openingQty=" + openingQty +", currentQty=" + currentQty +'}';}@Overridepublic boolean equals(Object o) {if (this == o) return true;if (o == null || getClass() != o.getClass()) return false;FofoOpeningStock that = (FofoOpeningStock) o;return id == that.id && fofoId == that.fofoId && catalogId == that.catalogId && openingQty == that.openingQty && currentQty == that.currentQty && Objects.equals(openingDate, that.openingDate);}@Overridepublic int hashCode() {return Objects.hash(id, fofoId, catalogId, openingDate, openingQty, currentQty);}}