Rev 21545 | Rev 21628 | 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;import java.io.Serializable;import java.time.LocalDateTime;import javax.persistence.Column;import javax.persistence.Entity;import javax.persistence.GeneratedValue;import javax.persistence.GenerationType;import javax.persistence.Id;import javax.persistence.NamedQueries;import javax.persistence.NamedQuery;import javax.persistence.Table;/*** This class basically contains api details** @author ashikali**/@Entity@Table(name="transaction.lineitem", schema = "transaction")@NamedQueries({@NamedQuery(name="LineItem.selectAll",query="select li from LineItem li"),@NamedQuery(name="LineItem.selectById",query="select li from LineItem li where li.id= :id")})public class LineItem implements Serializable{private static final long serialVersionUID = 1L;public LineItem() {}@Id@Column(name="id", unique=true, updatable=false)@GeneratedValue(strategy = GenerationType.IDENTITY)private int id;@Column(name = "item_id")private int itemId;@Column(name = "productGroup", length = 100)private String productGoup;@Column(name = "brand", length = 100)private String brand;@Column(name = "model_number", length = 100)private String modelNumber;@Column(name = "model_name", length = 100)private String modelName;@Column(name = "color", length = 20)private String color;@Column(name = "extra_info", length = 100)private String extraInfo;@Column(name = "quantity")private float quantity;@Column(name = "mrp")private float mrp;@Column(name = "unit_price")private float unitPrice;@Column(name = "unit_weight")private float unitWeight;@Column(name = "total_price")private float totalPrice;@Column(name = "transfer_price")private float transferPrice;@Column(name = "totalWeight")private float totalWeight;@Column(name = "order_id")private int orderId;@Column(name = "imei_number", length = 20)private String imeiNumber;@Column(name = "item_number", length = 50)private String itemNumber;@Column(name = "dealText", length = 100)private String dealText;@Column(name = "warranty_expiry_timestamp")private LocalDateTime warrantyExpiryTimestamp;@Column(name = "serial_number", length = 8192)private String serialNumber;@Column(name = "vatRate")private float vatRate;@Column(name = "nlc")private float nlc;@Column(name = "logisticsCost")private float logisticsCost;@Column(name = "codCollectionCharges")private float codCollectionCharges;@Column(name = "returnQty")private float returnQty;@Column(name = "damaged_expiry_timestamp")private LocalDateTime damagedExpiryTimestamp;public int getId() {return id;}public void setId(int id) {this.id = id;}public int getItemId() {return itemId;}public void setItemId(int itemId) {this.itemId = itemId;}public String getProductGoup() {return productGoup;}public void setProductGoup(String productGoup) {this.productGoup = productGoup;}public String getBrand() {return brand;}public void setBrand(String brand) {this.brand = brand;}public String getModelNumber() {return modelNumber;}public void setModelNumber(String modelNumber) {this.modelNumber = modelNumber;}public String getModelName() {return modelName;}public void setModelName(String modelName) {this.modelName = modelName;}public String getColor() {return color;}public void setColor(String color) {this.color = color;}public String getExtraInfo() {return extraInfo;}public void setExtraInfo(String extraInfo) {this.extraInfo = extraInfo;}public float getQuantity() {return quantity;}public void setQuantity(float quantity) {this.quantity = quantity;}public float getMrp() {return mrp;}public void setMrp(float mrp) {this.mrp = mrp;}public float getUnitPrice() {return unitPrice;}public void setUnitPrice(float unitPrice) {this.unitPrice = unitPrice;}public float getUnitWeight() {return unitWeight;}public void setUnitWeight(float unitWeight) {this.unitWeight = unitWeight;}public float getTotalPrice() {return totalPrice;}public void setTotalPrice(float totalPrice) {this.totalPrice = totalPrice;}public float getTransferPrice() {return transferPrice;}public void setTransferPrice(float transferPrice) {this.transferPrice = transferPrice;}public float getTotalWeight() {return totalWeight;}public void setTotalWeight(float totalWeight) {this.totalWeight = totalWeight;}public int getOrderId(){return orderId;}public void setOrderId(int orderId) {this.orderId = orderId;}public String getImeiNumber() {return imeiNumber;}public void setImeiNumber(String imeiNumber) {this.imeiNumber = imeiNumber;}public String getItemNumber() {return itemNumber;}public void setItemNumber(String itemNumber) {this.itemNumber = itemNumber;}public String getDealText() {return dealText;}public void setDealText(String dealText) {this.dealText = dealText;}public LocalDateTime getWarrantyExpiryTimestamp() {return warrantyExpiryTimestamp;}public void setWarrantyExpiryTimestamp(LocalDateTime warrantyExpiryTimestamp) {this.warrantyExpiryTimestamp = warrantyExpiryTimestamp;}public String getSerialNumber() {return serialNumber;}public void setSerialNumber(String serialNumber) {this.serialNumber = serialNumber;}public float getVatRate() {return vatRate;}public void setVatRate(float vatRate) {this.vatRate = vatRate;}public float getNlc() {return nlc;}public void setNlc(float nlc) {this.nlc = nlc;}public float getLogisticsCost() {return logisticsCost;}public void setLogisticsCost(float logisticsCost) {this.logisticsCost = logisticsCost;}public float getCodCollectionCharges() {return codCollectionCharges;}public void setCodCollectionCharges(float codCollectionCharges) {this.codCollectionCharges = codCollectionCharges;}public float getReturnQty() {return returnQty;}public void setReturnQty(float returnQty) {this.returnQty = returnQty;}public LocalDateTime getDamagedExpiryTimestamp() {return damagedExpiryTimestamp;}public void setDamagedExpiryTimestamp(LocalDateTime damagedExpiryTimestamp) {this.damagedExpiryTimestamp = damagedExpiryTimestamp;}@Overridepublic String toString() {return "LineItem [id=" + id + ", itemId=" + itemId + ", productGoup=" + productGoup + ", brand=" + brand+ ", modelNumber=" + modelNumber + ", modelName=" + modelName + ", color=" + color + ", extraInfo="+ extraInfo + ", quantity=" + quantity + ", mrp=" + mrp + ", unitPrice=" + unitPrice + ", unitWeight="+ unitWeight + ", totalPrice=" + totalPrice + ", transferPrice=" + transferPrice + ", totalWeight="+ totalWeight + ", imeiNumber=" + imeiNumber + ", itemNumber=" + itemNumber+ ", dealText=" + dealText + ", warrantyExpiryTimestamp=" + warrantyExpiryTimestamp + ", serialNumber="+ serialNumber + ", vatRate=" + vatRate + ", nlc=" + nlc + ", logisticsCost=" + logisticsCost+ ", codCollectionCharges=" + codCollectionCharges + ", returnQty=" + returnQty+ ", damagedExpiryTimestamp=" + damagedExpiryTimestamp + "]";}}