Subversion Repositories SmartDukaan

Rev

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

Rev 21720 Rev 21924
Line 100... Line 100...
100
		return updateTimestamp;
100
		return updateTimestamp;
101
	}
101
	}
102
    public void setUpdateTimestamp(LocalDateTime updateTimestamp) {
102
    public void setUpdateTimestamp(LocalDateTime updateTimestamp) {
103
		this.updateTimestamp = updateTimestamp;
103
		this.updateTimestamp = updateTimestamp;
104
	}
104
	}
-
 
105
    
-
 
106
    
-
 
107
	@Override
-
 
108
	public int hashCode() {
-
 
109
		final int prime = 31;
-
 
110
		int result = 1;
-
 
111
		result = prime * result + ((createTimestamp == null) ? 0 : createTimestamp.hashCode());
-
 
112
		result = prime * result + ((emailId == null) ? 0 : emailId.hashCode());
-
 
113
		result = prime * result + ((gender == null) ? 0 : gender.hashCode());
-
 
114
		result = prime * result + id;
-
 
115
		result = prime * result + ((name == null) ? 0 : name.hashCode());
-
 
116
		result = prime * result + ((type == null) ? 0 : type.hashCode());
-
 
117
		result = prime * result + ((updateTimestamp == null) ? 0 : updateTimestamp.hashCode());
-
 
118
		return result;
-
 
119
	}
-
 
120
	@Override
-
 
121
	public boolean equals(Object obj) {
-
 
122
		if (this == obj)
-
 
123
			return true;
-
 
124
		if (obj == null)
-
 
125
			return false;
-
 
126
		if (getClass() != obj.getClass())
-
 
127
			return false;
-
 
128
		SocialUser other = (SocialUser) obj;
-
 
129
		if (createTimestamp == null) {
-
 
130
			if (other.createTimestamp != null)
-
 
131
				return false;
-
 
132
		} else if (!createTimestamp.equals(other.createTimestamp))
-
 
133
			return false;
-
 
134
		if (emailId == null) {
-
 
135
			if (other.emailId != null)
-
 
136
				return false;
-
 
137
		} else if (!emailId.equals(other.emailId))
-
 
138
			return false;
-
 
139
		if (gender != other.gender)
-
 
140
			return false;
-
 
141
		if (id != other.id)
-
 
142
			return false;
-
 
143
		if (name == null) {
-
 
144
			if (other.name != null)
-
 
145
				return false;
-
 
146
		} else if (!name.equals(other.name))
-
 
147
			return false;
-
 
148
		if (type != other.type)
-
 
149
			return false;
-
 
150
		if (updateTimestamp == null) {
-
 
151
			if (other.updateTimestamp != null)
-
 
152
				return false;
-
 
153
		} else if (!updateTimestamp.equals(other.updateTimestamp))
-
 
154
			return false;
-
 
155
		return true;
-
 
156
	}
105
	@Override
157
	@Override
106
	public String toString() {
158
	public String toString() {
107
		return "SocialUser [id=" + id + ", name=" + name + ", emailId=" + emailId + ", type=" + type
159
		return "SocialUser [id=" + id + ", name=" + name + ", emailId=" + emailId + ", type=" + type
108
				+ ", createTimestamp=" + createTimestamp + ", updateTimestamp=" + updateTimestamp + "]";
160
				+ ", createTimestamp=" + createTimestamp + ", updateTimestamp=" + updateTimestamp + "]";
109
	}
161
	}