Subversion Repositories SmartDukaan

Rev

Rev 22532 | Rev 23716 | 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
 
32
	public int getId() {
33
		return id;
34
	}
35
	public void setId(int id) {
36
		this.id = id;
37
	}
38
 
39
    public String getCode() {
40
		return code;
41
	}
42
 
43
    public void setCode(String code) {
44
		this.code = code;
45
	}
46
 
47
	@Override
48
	public int hashCode() {
49
		final int prime = 31;
50
		int result = 1;
51
		result = prime * result + id;
52
		return result;
53
	}
54
	@Override
55
	public boolean equals(Object obj) {
56
		if (this == obj)
57
			return true;
58
		if (obj == null)
59
			return false;
60
		if (getClass() != obj.getClass())
61
			return false;
62
		FofoStore other = (FofoStore) obj;
63
		if (id != other.id)
64
			return false;
65
		return true;
66
	}
67
	@Override
68
	public String toString() {
69
		return "FofoStore [id=" + id + ", code=" + code + "]";
70
	}
71
 
72
 
73
}