Subversion Repositories SmartDukaan

Rev

Rev 28299 | Rev 32074 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28299 Rev 28493
Line 11... Line 11...
11
 
11
 
12
@Entity
12
@Entity
13
@Table(name = "warehouse.supplier", schema = "warehouse")
13
@Table(name = "warehouse.supplier", schema = "warehouse")
14
public class Supplier {
14
public class Supplier {
15
 
15
 
16
	
-
 
17
	@Id
16
	@Id
18
	@Column(name = "id", unique = true, updatable = false)
17
	@Column(name = "id", unique = true, updatable = false)
19
	@GeneratedValue(strategy = GenerationType.IDENTITY)
18
	@GeneratedValue(strategy = GenerationType.IDENTITY)
20
	 private int id; // required
19
	private int id; // required
-
 
20
 
21
	  private String name; // required
21
	private String name; // required
-
 
22
 
22
	  private String phone; // required
23
	private String phone; // required
23
	  private String fax; // required
24
	private String fax; // required
24
	  private String tin; // required
25
	private String tin; 
25
	  private String pan; // required
26
	private String pan; // required
26
	  private String headName; // required
27
	private String headName; // required
27
	  private String headDesignation; // required
28
	private String headDesignation; // required
28
	  private String headEmail; // required
29
	private String headEmail; // required
29
	  private String contactName; // required
30
	private String contactName; // required
30
	  private String contactPhone; // required
31
	private String contactPhone; // required
31
	  private String contactFax; // required
32
	private String contactFax; // required
32
	  private String contactEmail; // required
33
	private String contactEmail; // required
33
	  private String registeredAddress; // required
34
	private String registeredAddress; // required
34
	  private String communicationAddress; // required
35
	private String communicationAddress; // required
35
	  private int stateId; // required
36
	private int stateId; // required
36
	  private int poValidityLimit; // required
37
	private int poValidityLimit; // required
37
	  private String gstin; // required
38
	private String gstin; // required
38
	  private String tnc;
39
	private String tnc;
39
	  @Column(name = "status")
40
	@Column(name = "status")
40
	  private boolean status;
41
	private boolean status;
41
	
-
 
42
	
42
 
43
		public boolean isStatus() {
43
	public boolean isStatus() {
44
			return status;
44
		return status;
45
		}
45
	}
-
 
46
 
46
		public void setStatus(boolean status) {
47
	public void setStatus(boolean status) {
47
			this.status = status;
48
		this.status = status;
48
		}
49
	}
49
	
50
 
50
	public int getId() {
51
	public int getId() {
51
		return id;
52
		return id;
52
	}
53
	}
-
 
54
 
53
	public void setId(int id) {
55
	public void setId(int id) {
54
		this.id = id;
56
		this.id = id;
55
	}
57
	}
-
 
58
 
56
	public String getName() {
59
	public String getName() {
57
		return name;
60
		return name;
58
	}
61
	}
-
 
62
 
59
	public void setName(String name) {
63
	public void setName(String name) {
60
		this.name = name;
64
		this.name = name;
61
	}
65
	}
-
 
66
 
62
	public String getPhone() {
67
	public String getPhone() {
63
		return phone;
68
		return phone;
64
	}
69
	}
-
 
70
 
65
	public void setPhone(String phone) {
71
	public void setPhone(String phone) {
66
		this.phone = phone;
72
		this.phone = phone;
67
	}
73
	}
-
 
74
 
68
	public String getFax() {
75
	public String getFax() {
69
		return fax;
76
		return fax;
70
	}
77
	}
-
 
78
 
71
	public void setFax(String fax) {
79
	public void setFax(String fax) {
72
		this.fax = fax;
80
		this.fax = fax;
73
	}
81
	}
-
 
82
 
74
	public String getTin() {
83
	public String getTin() {
75
		return tin;
84
		return tin;
76
	}
85
	}
-
 
86
 
77
	public void setTin(String tin) {
87
	public void setTin(String tin) {
78
		this.tin = tin;
88
		this.tin = tin;
79
	}
89
	}
-
 
90
 
80
	public String getPan() {
91
	public String getPan() {
81
		return pan;
92
		return pan;
82
	}
93
	}
-
 
94
 
83
	public void setPan(String pan) {
95
	public void setPan(String pan) {
84
		this.pan = pan;
96
		this.pan = pan;
85
	}
97
	}
-
 
98
 
86
	public String getHeadName() {
99
	public String getHeadName() {
87
		return headName;
100
		return headName;
88
	}
101
	}
-
 
102
 
89
	public void setHeadName(String headName) {
103
	public void setHeadName(String headName) {
90
		this.headName = headName;
104
		this.headName = headName;
91
	}
105
	}
-
 
106
 
92
	public String getHeadDesignation() {
107
	public String getHeadDesignation() {
93
		return headDesignation;
108
		return headDesignation;
94
	}
109
	}
-
 
110
 
95
	public void setHeadDesignation(String headDesignation) {
111
	public void setHeadDesignation(String headDesignation) {
96
		this.headDesignation = headDesignation;
112
		this.headDesignation = headDesignation;
97
	}
113
	}
-
 
114
 
98
	public String getHeadEmail() {
115
	public String getHeadEmail() {
99
		return headEmail;
116
		return headEmail;
100
	}
117
	}
-
 
118
 
101
	public void setHeadEmail(String headEmail) {
119
	public void setHeadEmail(String headEmail) {
102
		this.headEmail = headEmail;
120
		this.headEmail = headEmail;
103
	}
121
	}
-
 
122
 
104
	public String getContactName() {
123
	public String getContactName() {
105
		return contactName;
124
		return contactName;
106
	}
125
	}
-
 
126
 
107
	public void setContactName(String contactName) {
127
	public void setContactName(String contactName) {
108
		this.contactName = contactName;
128
		this.contactName = contactName;
109
	}
129
	}
-
 
130
 
110
	public String getContactPhone() {
131
	public String getContactPhone() {
111
		return contactPhone;
132
		return contactPhone;
112
	}
133
	}
-
 
134
 
113
	public void setContactPhone(String contactPhone) {
135
	public void setContactPhone(String contactPhone) {
114
		this.contactPhone = contactPhone;
136
		this.contactPhone = contactPhone;
115
	}
137
	}
-
 
138
 
116
	public String getContactFax() {
139
	public String getContactFax() {
117
		return contactFax;
140
		return contactFax;
118
	}
141
	}
-
 
142
 
119
	public void setContactFax(String contactFax) {
143
	public void setContactFax(String contactFax) {
120
		this.contactFax = contactFax;
144
		this.contactFax = contactFax;
121
	}
145
	}
-
 
146
 
122
	public String getContactEmail() {
147
	public String getContactEmail() {
123
		return contactEmail;
148
		return contactEmail;
124
	}
149
	}
-
 
150
 
125
	public void setContactEmail(String contactEmail) {
151
	public void setContactEmail(String contactEmail) {
126
		this.contactEmail = contactEmail;
152
		this.contactEmail = contactEmail;
127
	}
153
	}
-
 
154
 
128
	public String getRegisteredAddress() {
155
	public String getRegisteredAddress() {
129
		return registeredAddress;
156
		return registeredAddress;
130
	}
157
	}
-
 
158
 
131
	public void setRegisteredAddress(String registeredAddress) {
159
	public void setRegisteredAddress(String registeredAddress) {
132
		this.registeredAddress = registeredAddress;
160
		this.registeredAddress = registeredAddress;
133
	}
161
	}
-
 
162
 
134
	public String getCommunicationAddress() {
163
	public String getCommunicationAddress() {
135
		return communicationAddress;
164
		return communicationAddress;
136
	}
165
	}
-
 
166
 
137
	public void setCommunicationAddress(String communicationAddress) {
167
	public void setCommunicationAddress(String communicationAddress) {
138
		this.communicationAddress = communicationAddress;
168
		this.communicationAddress = communicationAddress;
139
	}
169
	}
-
 
170
 
140
	public int getStateId() {
171
	public int getStateId() {
141
		return stateId;
172
		return stateId;
142
	}
173
	}
-
 
174
 
143
	public void setStateId(int stateId) {
175
	public void setStateId(int stateId) {
144
		this.stateId = stateId;
176
		this.stateId = stateId;
145
	}
177
	}
-
 
178
 
146
	public int getPoValidityLimit() {
179
	public int getPoValidityLimit() {
147
		return poValidityLimit;
180
		return poValidityLimit;
148
	}
181
	}
-
 
182
 
149
	public void setPoValidityLimit(int poValidityLimit) {
183
	public void setPoValidityLimit(int poValidityLimit) {
150
		this.poValidityLimit = poValidityLimit;
184
		this.poValidityLimit = poValidityLimit;
151
	}
185
	}
-
 
186
 
152
	public String getGstin() {
187
	public String getGstin() {
153
		return gstin;
188
		return gstin;
154
	}
189
	}
-
 
190
 
155
	public void setGstin(String gstin) {
191
	public void setGstin(String gstin) {
156
		this.gstin = gstin;
192
		this.gstin = gstin;
157
	}
193
	}
-
 
194
 
158
	public String getTnc() {
195
	public String getTnc() {
159
		return tnc;
196
		return tnc;
160
	}
197
	}
-
 
198
 
161
	public void setTnc(String tnc) {
199
	public void setTnc(String tnc) {
162
		this.tnc = tnc;
200
		this.tnc = tnc;
163
	}
201
	}
-
 
202
 
164
	public Supplier() {
203
	public Supplier() {
165
		super();
204
		super();
166
		// TODO Auto-generated constructor stub
205
		// TODO Auto-generated constructor stub
167
	}
206
	}
-
 
207
 
168
	@Override
208
	@Override
169
	public String toString() {
209
	public String toString() {
170
		return "Supplier [id=" + id + ", name=" + name + ", phone=" + phone + ", fax=" + fax + ", tin=" + tin + ", pan="
210
		return "Supplier [id=" + id + ", name=" + name + ", phone=" + phone + ", fax=" + fax + ", tin=" + tin + ", pan="
171
				+ pan + ", headName=" + headName + ", headDesignation=" + headDesignation + ", headEmail=" + headEmail
211
				+ pan + ", headName=" + headName + ", headDesignation=" + headDesignation + ", headEmail=" + headEmail
172
				+ ", contactName=" + contactName + ", contactPhone=" + contactPhone + ", contactFax=" + contactFax
212
				+ ", contactName=" + contactName + ", contactPhone=" + contactPhone + ", contactFax=" + contactFax
173
				+ ", contactEmail=" + contactEmail + ", registeredAddress=" + registeredAddress
213
				+ ", contactEmail=" + contactEmail + ", registeredAddress=" + registeredAddress
174
				+ ", communicationAddress=" + communicationAddress + ", stateId=" + stateId + ", poValidityLimit="
214
				+ ", communicationAddress=" + communicationAddress + ", stateId=" + stateId + ", poValidityLimit="
175
				+ poValidityLimit + ", gstin=" + gstin + ", tnc=" + tnc + "]";
215
				+ poValidityLimit + ", gstin=" + gstin + ", tnc=" + tnc + "]";
176
	}
216
	}
-
 
217
 
177
	@Override
218
	@Override
178
	public int hashCode() {
219
	public int hashCode() {
179
		final int prime = 31;
220
		final int prime = 31;
180
		int result = 1;
221
		int result = 1;
181
		result = prime * result + ((communicationAddress == null) ? 0 : communicationAddress.hashCode());
222
		result = prime * result + ((communicationAddress == null) ? 0 : communicationAddress.hashCode());
Line 197... Line 238...
197
		result = prime * result + stateId;
238
		result = prime * result + stateId;
198
		result = prime * result + ((tin == null) ? 0 : tin.hashCode());
239
		result = prime * result + ((tin == null) ? 0 : tin.hashCode());
199
		result = prime * result + ((tnc == null) ? 0 : tnc.hashCode());
240
		result = prime * result + ((tnc == null) ? 0 : tnc.hashCode());
200
		return result;
241
		return result;
201
	}
242
	}
-
 
243
 
202
	@Override
244
	@Override
203
	public boolean equals(Object obj) {
245
	public boolean equals(Object obj) {
204
		if (this == obj)
246
		if (this == obj)
205
			return true;
247
			return true;
206
		if (obj == null)
248
		if (obj == null)
Line 294... Line 336...
294
				return false;
336
				return false;
295
		} else if (!tnc.equals(other.tnc))
337
		} else if (!tnc.equals(other.tnc))
296
			return false;
338
			return false;
297
		return true;
339
		return true;
298
	}
340
	}
299
	
-
 
300
	  
-
 
301
 
-
 
302
 
-
 
303
	  
-
 
304
	  
-
 
305
 
-
 
306
 
341
 
307
}
342
}