Subversion Repositories SmartDukaan

Rev

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

Rev 24402 Rev 24479
Line 20... Line 20...
20
	private int id;
20
	private int id;
21
 
21
 
22
	@Column(name = "email_id", unique=true, updatable=false)
22
	@Column(name = "email_id", unique=true, updatable=false)
23
	private String emailId;
23
	private String emailId;
24
	
24
	
-
 
25
	@Column(name="gmail_id", unique=true)
-
 
26
	private String gmailId; 
-
 
27
	
-
 
28
	public String getGmailId() {
-
 
29
		return gmailId;
-
 
30
	}
-
 
31
 
-
 
32
 
-
 
33
 
-
 
34
	public void setGmailId(String gmailId) {
-
 
35
		this.gmailId = gmailId;
-
 
36
	}
-
 
37
 
-
 
38
 
-
 
39
 
25
	public int getId() {
40
	public int getId() {
26
		return id;
41
		return id;
27
	}
42
	}
28
 
43
 
29
 
44
 
Line 95... Line 110...
95
		final int prime = 31;
110
		final int prime = 31;
96
		int result = 1;
111
		int result = 1;
97
		result = prime * result + ((createdTimestamp == null) ? 0 : createdTimestamp.hashCode());
112
		result = prime * result + ((createdTimestamp == null) ? 0 : createdTimestamp.hashCode());
98
		result = prime * result + ((emailId == null) ? 0 : emailId.hashCode());
113
		result = prime * result + ((emailId == null) ? 0 : emailId.hashCode());
99
		result = prime * result + ((firstName == null) ? 0 : firstName.hashCode());
114
		result = prime * result + ((firstName == null) ? 0 : firstName.hashCode());
-
 
115
		result = prime * result + ((gmailId == null) ? 0 : gmailId.hashCode());
100
		result = prime * result + id;
116
		result = prime * result + id;
101
		result = prime * result + ((lastLoginTimestamp == null) ? 0 : lastLoginTimestamp.hashCode());
117
		result = prime * result + ((lastLoginTimestamp == null) ? 0 : lastLoginTimestamp.hashCode());
102
		result = prime * result + ((lastName == null) ? 0 : lastName.hashCode());
118
		result = prime * result + ((lastName == null) ? 0 : lastName.hashCode());
103
		result = prime * result + ((mobileNumber == null) ? 0 : mobileNumber.hashCode());
119
		result = prime * result + ((mobileNumber == null) ? 0 : mobileNumber.hashCode());
104
		result = prime * result + ((password == null) ? 0 : password.hashCode());
120
		result = prime * result + ((password == null) ? 0 : password.hashCode());
Line 129... Line 145...
129
		if (firstName == null) {
145
		if (firstName == null) {
130
			if (other.firstName != null)
146
			if (other.firstName != null)
131
				return false;
147
				return false;
132
		} else if (!firstName.equals(other.firstName))
148
		} else if (!firstName.equals(other.firstName))
133
			return false;
149
			return false;
-
 
150
		if (gmailId == null) {
-
 
151
			if (other.gmailId != null)
-
 
152
				return false;
-
 
153
		} else if (!gmailId.equals(other.gmailId))
-
 
154
			return false;
134
		if (id != other.id)
155
		if (id != other.id)
135
			return false;
156
			return false;
136
		if (lastLoginTimestamp == null) {
157
		if (lastLoginTimestamp == null) {
137
			if (other.lastLoginTimestamp != null)
158
			if (other.lastLoginTimestamp != null)
138
				return false;
159
				return false;
Line 212... Line 233...
212
		return createdTimestamp.format(formatter);
233
		return createdTimestamp.format(formatter);
213
    }
234
    }
214
 
235
 
215
	@Override
236
	@Override
216
	public String toString() {
237
	public String toString() {
217
		return "AuthUser [id=" + id + ", emailId=" + emailId + ", firstName=" + firstName + ", lastName=" + lastName
238
		return "AuthUser [id=" + id + ", emailId=" + emailId + ", gmailId=" + gmailId + ", firstName=" + firstName
218
				+ ", mobileNumber=" + mobileNumber + ", password=" + password + ", createdTimestamp=" + createdTimestamp
239
				+ ", lastName=" + lastName + ", mobileNumber=" + mobileNumber + ", password=" + password
219
				+ ", lastLoginTimestamp=" + lastLoginTimestamp + "]";
240
				+ ", createdTimestamp=" + createdTimestamp + ", lastLoginTimestamp=" + lastLoginTimestamp + "]";
220
	}
241
	}
221
	
242
	
222
 
243
 
223
	
244
	
224
}
245
}