Subversion Repositories SmartDukaan

Rev

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

Rev 31568 Rev 31570
Line 41... Line 41...
41
	private String url;
41
	private String url;
42
 
42
 
43
	@Column
43
	@Column
44
	private String bannerUrl;
44
	private String bannerUrl;
45
 
45
 
46
	public WebListingSource getTargetSource() {
-
 
47
		return targetSource;
-
 
48
	}
-
 
49
 
-
 
50
	public void setTargetSource(WebListingSource targetSource) {
-
 
51
		this.targetSource = targetSource;
-
 
52
	}
-
 
53
 
-
 
54
	@Column
46
	@Column
55
	private String headerUrl;
47
	private String headerUrl;
56
 
48
 
57
	@Column
49
	@Column
58
	@JsonProperty(defaultValue = "true")
50
	@JsonProperty(defaultValue = "true")
Line 64... Line 56...
64
 
56
 
65
	@Column
57
	@Column
66
	@Enumerated(EnumType.STRING)
58
	@Enumerated(EnumType.STRING)
67
	private WebListingType type;
59
	private WebListingType type;
68
 
60
 
-
 
61
	@Column
-
 
62
	private String solrQuery;
-
 
63
 
69
	@Transient
64
	@Transient
70
	private List<FofoCatalogResponse> fofoCatalogResponses;
65
	private List<FofoCatalogResponse> fofoCatalogResponses;
71
 
66
 
72
	public String getBannerUrl() {
67
	public String getBannerUrl() {
73
		return bannerUrl;
68
		return bannerUrl;
74
	}
69
	}
75
 
70
 
-
 
71
	public WebListingSource getTargetSource() {
-
 
72
		return targetSource;
-
 
73
	}
-
 
74
 
-
 
75
	public void setTargetSource(WebListingSource targetSource) {
-
 
76
		this.targetSource = targetSource;
-
 
77
	}
-
 
78
 
76
	public void setBannerUrl(String bannerUrl) {
79
	public void setBannerUrl(String bannerUrl) {
77
		this.bannerUrl = bannerUrl;
80
		this.bannerUrl = bannerUrl;
78
	}
81
	}
79
 
82
 
80
	public int getId() {
83
	public int getId() {
Line 135... Line 138...
135
 
138
 
136
	@Override
139
	@Override
137
	public String toString() {
140
	public String toString() {
138
		return "WebListing [id=" + id + ", title=" + title + ", rank=" + rank + ", url=" + url + ", bannerUrl="
141
		return "WebListing [id=" + id + ", title=" + title + ", rank=" + rank + ", url=" + url + ", bannerUrl="
139
				+ bannerUrl + ", headerUrl=" + headerUrl + ", active=" + active + ", targetSource=" + targetSource
142
				+ bannerUrl + ", headerUrl=" + headerUrl + ", active=" + active + ", targetSource=" + targetSource
140
				+ ", type=" + type + "]";
143
				+ ", type=" + type + ", solrQuery=" + solrQuery + "]";
141
	}
144
	}
142
 
145
 
143
	@Override
146
	@Override
144
	public int hashCode() {
147
	public int hashCode() {
145
		return Objects.hash(active, bannerUrl, headerUrl, id, rank, targetSource, title, type, url);
148
		return Objects.hash(active, bannerUrl, headerUrl, id, rank, solrQuery, targetSource, title, type, url);
146
	}
149
	}
147
 
150
 
148
	public List<FofoCatalogResponse> getFofoCatalogResponses() {
151
	public List<FofoCatalogResponse> getFofoCatalogResponses() {
149
		return fofoCatalogResponses;
152
		return fofoCatalogResponses;
150
	}
153
	}
Line 162... Line 165...
162
		if (getClass() != obj.getClass())
165
		if (getClass() != obj.getClass())
163
			return false;
166
			return false;
164
		WebListing other = (WebListing) obj;
167
		WebListing other = (WebListing) obj;
165
		return active == other.active && Objects.equals(bannerUrl, other.bannerUrl)
168
		return active == other.active && Objects.equals(bannerUrl, other.bannerUrl)
166
				&& Objects.equals(headerUrl, other.headerUrl) && id == other.id && rank == other.rank
169
				&& Objects.equals(headerUrl, other.headerUrl) && id == other.id && rank == other.rank
167
				&& targetSource == other.targetSource && Objects.equals(title, other.title) && type == other.type
170
				&& Objects.equals(solrQuery, other.solrQuery) && targetSource == other.targetSource
168
				&& Objects.equals(url, other.url);
171
				&& Objects.equals(title, other.title) && type == other.type && Objects.equals(url, other.url);
169
	}
172
	}
170
 
173
 
171
}
174
}
172
175