Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.fofo;import java.io.Serializable;import javax.persistence.Column;import javax.persistence.Entity;import javax.persistence.Id;import javax.persistence.Table;import javax.persistence.Transient;@Entity@Table(name="fofo.indent_item", schema = "fofo")public class IndentItem implements Serializable {/****/private static final long serialVersionUID = 1L;/****/@Id@Column(name="indent_id")int indentId;@Id@Column(name="item_id")int itemId;@Column(name="requested_quantity")int requestedQuantity;@Column(name="allocated_quantity")int allocatedQuantity;@TransientString itemDescription;@Transientint stockInHand;@Transientint last30DaysSale;public int getStockInHand() {return stockInHand;}public void setStockInHand(int stockInHand) {this.stockInHand = stockInHand;}public int getLast30DaysSale() {return last30DaysSale;}public void setLast30DaysSale(int last30DaysSale) {this.last30DaysSale = last30DaysSale;}public String getItemDescription() {return itemDescription;}public void setItemDescription(String itemDescription) {this.itemDescription = itemDescription;}public int getIndentId() {return indentId;}public void setIndentId(int indentId) {this.indentId = indentId;}public int getItemId() {return itemId;}public void setItemId(int itemId) {this.itemId = itemId;}public int getRequestedQuantity() {return requestedQuantity;}public void setRequestedQuantity(int requestedQuantity) {this.requestedQuantity = requestedQuantity;}public int getAllocatedQuantity() {return allocatedQuantity;}public void setAllocatedQuantity(int allocatedQuantity) {this.allocatedQuantity = allocatedQuantity;}@Overridepublic String toString() {return "IndentItem [indentId=" + indentId + ", itemId=" + itemId + ", requestedQuantity="+ requestedQuantity + ", allocatedQuantity=" + allocatedQuantity + "]";}@Overridepublic int hashCode() {final int prime = 31;int result = 1;result = prime * result + indentId;result = prime * result + itemId;return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;IndentItem other = (IndentItem) obj;if (indentId != other.indentId)return false;if (itemId != other.itemId)return false;return true;}}