Rev 21602 | Rev 21924 | 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.logistics;import java.io.Serializable;import javax.persistence.Column;import javax.persistence.Entity;import javax.persistence.GeneratedValue;import javax.persistence.GenerationType;import javax.persistence.Id;import javax.persistence.Table;/*** This class basically contains address details** @author ashikali**/@Entity@Table(name="logistics.provider", schema = "logistics")public class Provider implements Serializable{private static final long serialVersionUID = 1L;public Provider() {}@Id@Column(name="id", unique=true, updatable=false)@GeneratedValue(strategy = GenerationType.IDENTITY)private int id;@Column(name="name", length = 100)private String name;@Column(name = "isActive", columnDefinition = "tinyint(1) default 1")private boolean active;@Column(name = "pickup")private int pickup;@Column(name = "bundleWeightLimit")private float bundleWeightLimit;@Column(name = "groupShipmentAllowed", columnDefinition = "tinyint(1) default 0")private boolean groupShipmentAllowed;@Column(name = "maxCodLimit")private float maxCODLimit;public int getId() {return id;}public void setId(int id) {this.id = id;}public void setName(String name) {this.name = name;}public String getName() {return name;}public boolean isActive() {return active;}public void setActive(boolean active) {this.active = active;}public int getPickup() {return pickup;}public void setPickup(int pickup) {this.pickup = pickup;}public float getBundleWeightLimit() {return bundleWeightLimit;}public void setBundleWeightLimit(float bundleWeightLimit) {this.bundleWeightLimit = bundleWeightLimit;}public boolean isGroupShipmentAllowed() {return groupShipmentAllowed;}public void setGroupShipmentAllowed(boolean groupShipmentAllowed) {this.groupShipmentAllowed = groupShipmentAllowed;}public float getMaxCODLimit() {return maxCODLimit;}public void setMaxCODLimit(float maxCODLimit) {this.maxCODLimit = maxCODLimit;}@Overridepublic String toString() {return "Provider [id=" + id + ", name=" + name + ", active=" + active + ", pickup=" + pickup+ ", bundleWeightLimit=" + bundleWeightLimit + ", groupShipmentAllowed=" + groupShipmentAllowed+ ", maxCODLimit=" + maxCODLimit + "]";}}