Subversion Repositories SmartDukaan

Rev

Rev 23300 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
22352 ashik.ali 1
package com.spice.profitmandi.dao.entity.user;
2
 
3
import javax.persistence.Column;
4
import javax.persistence.Entity;
5
import javax.persistence.GeneratedValue;
6
import javax.persistence.GenerationType;
7
import javax.persistence.Id;
8
import javax.persistence.Table;
9
 
10
/**
11
 * This class basically contains address details
12
 * 
13
 * @author ashikali
14
 *
15
 */
16
@Entity
17
@Table(name="user.counter", schema = "user")
18
 
19
public class Counter {
20
 
21
	@Id
22
	@Column(name="id", unique=true, updatable=false)
23
	@GeneratedValue(strategy = GenerationType.IDENTITY)
24
	private int id;
25
 
26
	@Column(name = "name")
27
	private String name;
28
 
29
	@Column(name = "email")
30
	private String emailId;
31
 
32
	@Column(name = "mobile")
33
	private String mobileNumber;
34
 
35
	@Column(name = "gstin")
36
	private String gstin;
37
 
38
	@Column(name = "addressId")
39
	private int addressId;
40
 
41
	@Column(name = "documentVerified", columnDefinition = "tinyint(1) default 0")
42
	private boolean documentVerified;
43
 
44
	public int getId() {
45
		return id;
46
	}
47
 
48
	public void setId(int id) {
49
		this.id = id;
50
	}
51
 
52
	public String getName() {
53
		return name;
54
	}
55
 
56
	public void setName(String name) {
57
		this.name = name;
58
	}
59
 
60
	public String getEmailId() {
61
		return emailId;
62
	}
63
 
64
	public void setEmailId(String emailId) {
65
		this.emailId = emailId;
66
	}
67
 
68
	public String getMobileNumber() {
69
		return mobileNumber;
70
	}
71
 
72
	public void setMobileNumber(String mobileNumber) {
73
		this.mobileNumber = mobileNumber;
74
	}
75
 
76
	public String getGstin() {
77
		return gstin;
78
	}
79
 
80
	public void setGstin(String gstin) {
81
		this.gstin = gstin;
82
	}
83
 
84
	public int getAddressId() {
85
		return addressId;
86
	}
87
 
88
	public void setAddressId(int addressId) {
89
		this.addressId = addressId;
90
	}
91
 
92
	public boolean isDocumentVerified() {
93
		return documentVerified;
94
	}
95
 
96
	public void setDocumentVerified(boolean documentVerified) {
97
		this.documentVerified = documentVerified;
98
	}
99
 
100
	@Override
101
	public int hashCode() {
102
		final int prime = 31;
103
		int result = 1;
104
		result = prime * result + id;
105
		return result;
106
	}
107
 
108
	@Override
109
	public boolean equals(Object obj) {
110
		if (this == obj)
111
			return true;
112
		if (obj == null)
113
			return false;
114
		if (getClass() != obj.getClass())
115
			return false;
116
		Counter other = (Counter) obj;
117
		if (id != other.id)
118
			return false;
119
		return true;
120
	}
121
 
122
	@Override
123
	public String toString() {
124
		return "Counter [id=" + id + ", name=" + name + ", emailId=" + emailId + ", mobileNumber=" + mobileNumber
125
				+ ", gstin=" + gstin + ", addressId=" + addressId + ", documentVerified=" + documentVerified + "]";
126
	}
127
 
128
}