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 107... Line 107...
107
	}
107
	}
108
    public LocalDateTime getUpdateTimestamp() {
108
    public LocalDateTime getUpdateTimestamp() {
109
		return updateTimestamp;
109
		return updateTimestamp;
110
	}
110
	}
111
    
111
    
-
 
112
    
-
 
113
	@Override
-
 
114
	public int hashCode() {
-
 
115
		final int prime = 31;
-
 
116
		int result = 1;
-
 
117
		result = prime * result + addressId;
-
 
118
		result = prime * result + ((createTimestamp == null) ? 0 : createTimestamp.hashCode());
-
 
119
		result = prime * result + documentId;
-
 
120
		result = prime * result + id;
-
 
121
		result = prime * result + ((name == null) ? 0 : name.hashCode());
-
 
122
		result = prime * result + retailerId;
-
 
123
		result = prime * result + ((updateTimestamp == null) ? 0 : updateTimestamp.hashCode());
-
 
124
		return result;
-
 
125
	}
-
 
126
	@Override
-
 
127
	public boolean equals(Object obj) {
-
 
128
		if (this == obj)
-
 
129
			return true;
-
 
130
		if (obj == null)
-
 
131
			return false;
-
 
132
		if (getClass() != obj.getClass())
-
 
133
			return false;
-
 
134
		Shop other = (Shop) obj;
-
 
135
		if (addressId != other.addressId)
-
 
136
			return false;
-
 
137
		if (createTimestamp == null) {
-
 
138
			if (other.createTimestamp != null)
-
 
139
				return false;
-
 
140
		} else if (!createTimestamp.equals(other.createTimestamp))
-
 
141
			return false;
-
 
142
		if (documentId != other.documentId)
-
 
143
			return false;
-
 
144
		if (id != other.id)
-
 
145
			return false;
-
 
146
		if (name == null) {
-
 
147
			if (other.name != null)
-
 
148
				return false;
-
 
149
		} else if (!name.equals(other.name))
-
 
150
			return false;
-
 
151
		if (retailerId != other.retailerId)
-
 
152
			return false;
-
 
153
		if (updateTimestamp == null) {
-
 
154
			if (other.updateTimestamp != null)
-
 
155
				return false;
-
 
156
		} else if (!updateTimestamp.equals(other.updateTimestamp))
-
 
157
			return false;
-
 
158
		return true;
-
 
159
	}
112
	@Override
160
	@Override
113
	public String toString() {
161
	public String toString() {
114
		return "Shop [id=" + id + ", name=" + name + ", retailerId=" + retailerId + ", documentId=" + documentId
162
		return "Shop [id=" + id + ", name=" + name + ", retailerId=" + retailerId + ", documentId=" + documentId
115
				+ ", addressId=" + addressId + ", createTimestamp=" + createTimestamp + ", updateTimestamp="
163
				+ ", addressId=" + addressId + ", createTimestamp=" + createTimestamp + ", updateTimestamp="
116
				+ updateTimestamp + "]";
164
				+ updateTimestamp + "]";