Subversion Repositories SmartDukaan

Rev

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

Rev 28019 Rev 29610
Line 111... Line 111...
111
 
111
 
112
	public void setIncrementalTarget(boolean incrementalTarget) {
112
	public void setIncrementalTarget(boolean incrementalTarget) {
113
		this.incrementalTarget = incrementalTarget;
113
		this.incrementalTarget = incrementalTarget;
114
	}
114
	}
115
 
115
 
-
 
116
 
-
 
117
	
-
 
118
    @Override
-
 
119
	public int hashCode() {
-
 
120
		final int prime = 31;
-
 
121
		int result = 1;
-
 
122
		result = prime * result + id;
-
 
123
		return result;
-
 
124
	}
-
 
125
 
116
	@Override
126
	@Override
117
	public boolean equals(Object obj) {
127
	public boolean equals(Object obj) {
118
		if (this == obj)
128
		if (this == obj)
119
			return true;
129
			return true;
120
		if (obj == null)
130
		if (obj == null)
121
			return false;
131
			return false;
122
		if (getClass() != obj.getClass())
132
		if (getClass() != obj.getClass())
123
			return false;
133
			return false;
124
		Offer other = (Offer) obj;
134
		Offer other = (Offer) obj;
125
		if (activationBrands == null) {
-
 
126
			if (other.activationBrands != null)
-
 
127
				return false;
-
 
128
		} else if (!activationBrands.equals(other.activationBrands))
-
 
129
			return false;
-
 
130
		if (active != other.active)
-
 
131
			return false;
-
 
132
		if (Double.doubleToLongBits(brandSharePercentage) != Double.doubleToLongBits(other.brandSharePercentage))
-
 
133
			return false;
-
 
134
		if (createdTimestamp == null) {
-
 
135
			if (other.createdTimestamp != null)
-
 
136
				return false;
-
 
137
		} else if (!createdTimestamp.equals(other.createdTimestamp))
-
 
138
			return false;
-
 
139
		if (endDate == null) {
-
 
140
			if (other.endDate != null)
-
 
141
				return false;
-
 
142
		} else if (!endDate.equals(other.endDate))
-
 
143
			return false;
-
 
144
		if (id != other.id)
135
		if (id != other.id)
145
			return false;
136
			return false;
146
		if (incrementalTarget != other.incrementalTarget)
-
 
147
			return false;
-
 
148
		if (itemCriteria == null) {
-
 
149
			if (other.itemCriteria != null)
-
 
150
				return false;
-
 
151
		} else if (!itemCriteria.equals(other.itemCriteria))
-
 
152
			return false;
-
 
153
		if (itemCriteriaString == null) {
-
 
154
			if (other.itemCriteriaString != null)
-
 
155
				return false;
-
 
156
		} else if (!itemCriteriaString.equals(other.itemCriteriaString))
-
 
157
			return false;
-
 
158
		if (name == null) {
-
 
159
			if (other.name != null)
-
 
160
				return false;
-
 
161
		} else if (!name.equals(other.name))
-
 
162
			return false;
-
 
163
		if (offerNotes == null) {
-
 
164
			if (other.offerNotes != null)
-
 
165
				return false;
-
 
166
		} else if (!offerNotes.equals(other.offerNotes))
-
 
167
			return false;
-
 
168
		if (partnerCriteria == null) {
-
 
169
			if (other.partnerCriteria != null)
-
 
170
				return false;
-
 
171
		} else if (!partnerCriteria.equals(other.partnerCriteria))
-
 
172
			return false;
-
 
173
		if (payoutType != other.payoutType)
-
 
174
			return false;
-
 
175
		if (schemeType != other.schemeType)
-
 
176
			return false;
-
 
177
		if (Double.doubleToLongBits(sellinPercentage) != Double.doubleToLongBits(other.sellinPercentage))
-
 
178
			return false;
-
 
179
		if (startDate == null) {
-
 
180
			if (other.startDate != null)
-
 
181
				return false;
-
 
182
		} else if (!startDate.equals(other.startDate))
-
 
183
			return false;
-
 
184
		if (targetType != other.targetType)
-
 
185
			return false;
-
 
186
		if (terms == null) {
-
 
187
			if (other.terms != null)
-
 
188
				return false;
-
 
189
		} else if (!terms.equals(other.terms))
-
 
190
			return false;
-
 
191
		return true;
137
		return true;
192
	}
138
	}
193
 
139
 
194
    @Override
-
 
195
	public int hashCode() {
-
 
196
		final int prime = 31;
-
 
197
		int result = 1;
-
 
198
		result = prime * result + ((activationBrands == null) ? 0 : activationBrands.hashCode());
-
 
199
		result = prime * result + (active ? 1231 : 1237);
-
 
200
		long temp;
-
 
201
		temp = Double.doubleToLongBits(brandSharePercentage);
-
 
202
		result = prime * result + (int) (temp ^ (temp >>> 32));
-
 
203
		result = prime * result + ((createdTimestamp == null) ? 0 : createdTimestamp.hashCode());
-
 
204
		result = prime * result + ((endDate == null) ? 0 : endDate.hashCode());
-
 
205
		result = prime * result + id;
-
 
206
		result = prime * result + (incrementalTarget ? 1231 : 1237);
-
 
207
		result = prime * result + ((itemCriteria == null) ? 0 : itemCriteria.hashCode());
-
 
208
		result = prime * result + ((itemCriteriaString == null) ? 0 : itemCriteriaString.hashCode());
-
 
209
		result = prime * result + ((name == null) ? 0 : name.hashCode());
-
 
210
		result = prime * result + ((offerNotes == null) ? 0 : offerNotes.hashCode());
-
 
211
		result = prime * result + ((partnerCriteria == null) ? 0 : partnerCriteria.hashCode());
-
 
212
		result = prime * result + ((payoutType == null) ? 0 : payoutType.hashCode());
-
 
213
		result = prime * result + ((schemeType == null) ? 0 : schemeType.hashCode());
-
 
214
		temp = Double.doubleToLongBits(sellinPercentage);
-
 
215
		result = prime * result + (int) (temp ^ (temp >>> 32));
-
 
216
		result = prime * result + ((startDate == null) ? 0 : startDate.hashCode());
-
 
217
		result = prime * result + ((targetType == null) ? 0 : targetType.hashCode());
-
 
218
		result = prime * result + ((terms == null) ? 0 : terms.hashCode());
-
 
219
		return result;
-
 
220
	}
-
 
221
 
140
 
-
 
141
 
222
    @Transient
142
	@Transient
223
    private String itemCriteriaString;
143
    private String itemCriteriaString;
224
 
144
 
225
    public String getItemCriteriaString() {
145
    public String getItemCriteriaString() {
226
        return itemCriteriaString;
146
        return itemCriteriaString;
227
    }
147
    }