Subversion Repositories SmartDukaan

Rev

Rev 22653 | Rev 23718 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
22653 ashik.ali 1
package com.spice.profitmandi.dao.entity.fofo;
22418 ashik.ali 2
 
3
import java.io.Serializable;
4
 
5
import javax.persistence.Column;
6
import javax.persistence.Entity;
7
import javax.persistence.Id;
8
import javax.persistence.Table;
9
 
10
/**
11
 * This class basically contains store code details
12
 * 
13
 * @author ashikali
14
 *
15
 */
16
@Entity
22532 ashik.ali 17
@Table(name="fofo.fofo_store", schema = "fofo")
22418 ashik.ali 18
public class FofoStore implements Serializable{
19
 
20
	private static final long serialVersionUID = 1L;
21
 
22
	public FofoStore() {
23
	}
24
 
25
	@Id
26
	@Column(name="id", unique=true, updatable=false)
27
	private int id;
28
 
29
	@Column(name="code", unique = true)
30
	private String code;
31
 
23716 amit.gupta 32
	@Column(name="counter_size", unique = true)
33
	private float counterSize;
34
 
35
	public float getCounterSize() {
36
		return counterSize;
37
	}
38
	public void setCounterSize(float counterSize) {
39
		this.counterSize = counterSize;
40
	}
22418 ashik.ali 41
	public int getId() {
42
		return id;
43
	}
44
	public void setId(int id) {
45
		this.id = id;
46
	}
47
 
48
    public String getCode() {
49
		return code;
50
	}
51
 
52
    public void setCode(String code) {
53
		this.code = code;
54
	}
55
 
56
	@Override
57
	public int hashCode() {
58
		final int prime = 31;
59
		int result = 1;
60
		result = prime * result + id;
61
		return result;
62
	}
63
	@Override
64
	public boolean equals(Object obj) {
65
		if (this == obj)
66
			return true;
67
		if (obj == null)
68
			return false;
69
		if (getClass() != obj.getClass())
70
			return false;
71
		FofoStore other = (FofoStore) obj;
72
		if (id != other.id)
73
			return false;
74
		return true;
75
	}
76
	@Override
77
	public String toString() {
23716 amit.gupta 78
		return "FofoStore [id=" + id + ", code=" + code + ", counterSize=" + counterSize + "]";
22418 ashik.ali 79
	}
80
 
81
 
82
}