Rev 22653 | Rev 23718 | 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;/*** This class basically contains store code details** @author ashikali**/@Entity@Table(name="fofo.fofo_store", schema = "fofo")public class FofoStore implements Serializable{private static final long serialVersionUID = 1L;public FofoStore() {}@Id@Column(name="id", unique=true, updatable=false)private int id;@Column(name="code", unique = true)private String code;@Column(name="counter_size", unique = true)private float counterSize;public float getCounterSize() {return counterSize;}public void setCounterSize(float counterSize) {this.counterSize = counterSize;}public int getId() {return id;}public void setId(int id) {this.id = id;}public String getCode() {return code;}public void setCode(String code) {this.code = code;}@Overridepublic int hashCode() {final int prime = 31;int result = 1;result = prime * result + id;return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;FofoStore other = (FofoStore) obj;if (id != other.id)return false;return true;}@Overridepublic String toString() {return "FofoStore [id=" + id + ", code=" + code + ", counterSize=" + counterSize + "]";}}