Subversion Repositories SmartDukaan

Rev

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

Rev 28301 Rev 28566
Line 12... Line 12...
12
import javax.persistence.Transient;
12
import javax.persistence.Transient;
13
 
13
 
14
import com.fasterxml.jackson.annotation.JsonProperty;
14
import com.fasterxml.jackson.annotation.JsonProperty;
15
import com.spice.profitmandi.service.inventory.FofoCatalogResponse;
15
import com.spice.profitmandi.service.inventory.FofoCatalogResponse;
16
 
16
 
17
/**
-
 
18
 * This class basically contains api details
-
 
19
 * 
-
 
20
 * @author ashikali
-
 
21
 *
-
 
22
 */
-
 
23
@Entity
17
@Entity
24
@Table(name = "dtr.web_listing", schema = "dtr")
18
@Table(name = "dtr.web_listing", schema = "dtr")
25
public class WebListing implements Serializable {
19
public class WebListing implements Serializable {
26
 
20
 
27
	private static final long serialVersionUID = 1L;
21
	private static final long serialVersionUID = 1L;
Line 43... Line 37...
43
 
37
 
44
	@Column
38
	@Column
45
	private String bannerUrl;
39
	private String bannerUrl;
46
 
40
 
47
	@Column
41
	@Column
-
 
42
	private String headerUrl;
-
 
43
 
-
 
44
	@Column
48
	@JsonProperty(defaultValue = "true")
45
	@JsonProperty(defaultValue = "true")
49
	private boolean active = true;
46
	private boolean active = true;
50
 
47
 
51
	@Transient
48
	@Transient
52
	private List<FofoCatalogResponse> fofoCatalogResponses;
49
	private List<FofoCatalogResponse> fofoCatalogResponses;
53
 
50
 
54
	@Override
-
 
55
	public String toString() {
-
 
56
		return "WebListing [id=" + id + ", title=" + title + ", rank=" + rank + ", url=" + url + ", active=" + active
-
 
57
				+ "]";
-
 
58
	}
-
 
59
 
-
 
60
	public String getBannerUrl() {
51
	public String getBannerUrl() {
61
		return bannerUrl;
52
		return bannerUrl;
62
	}
53
	}
63
 
54
 
64
	public void setBannerUrl(String bannerUrl) {
55
	public void setBannerUrl(String bannerUrl) {
Line 103... Line 94...
103
 
94
 
104
	public void setUrl(String url) {
95
	public void setUrl(String url) {
105
		this.url = url;
96
		this.url = url;
106
	}
97
	}
107
 
98
 
-
 
99
	public String getHeaderUrl() {
-
 
100
		return headerUrl;
-
 
101
	}
-
 
102
 
-
 
103
	public void setHeaderUrl(String headerUrl) {
-
 
104
		this.headerUrl = headerUrl;
-
 
105
	}
-
 
106
 
-
 
107
	@Override
-
 
108
	public String toString() {
-
 
109
		return "WebListing [id=" + id + ", title=" + title + ", rank=" + rank + ", url=" + url + ", active=" + active
-
 
110
				+ "]";
-
 
111
	}
-
 
112
 
108
	@Override
113
	@Override
109
	public int hashCode() {
114
	public int hashCode() {
110
		final int prime = 31;
115
		final int prime = 31;
111
		int result = 1;
116
		int result = 1;
112
		result = prime * result + (active ? 1231 : 1237);
117
		result = prime * result + (active ? 1231 : 1237);
-
 
118
		result = prime * result + ((bannerUrl == null) ? 0 : bannerUrl.hashCode());
-
 
119
		result = prime * result + ((fofoCatalogResponses == null) ? 0 : fofoCatalogResponses.hashCode());
-
 
120
		result = prime * result + ((headerUrl == null) ? 0 : headerUrl.hashCode());
113
		result = prime * result + id;
121
		result = prime * result + id;
114
		result = prime * result + rank;
122
		result = prime * result + rank;
115
		result = prime * result + ((title == null) ? 0 : title.hashCode());
123
		result = prime * result + ((title == null) ? 0 : title.hashCode());
116
		result = prime * result + ((url == null) ? 0 : url.hashCode());
124
		result = prime * result + ((url == null) ? 0 : url.hashCode());
117
		return result;
125
		return result;
Line 134... Line 142...
134
		if (getClass() != obj.getClass())
142
		if (getClass() != obj.getClass())
135
			return false;
143
			return false;
136
		WebListing other = (WebListing) obj;
144
		WebListing other = (WebListing) obj;
137
		if (active != other.active)
145
		if (active != other.active)
138
			return false;
146
			return false;
-
 
147
		if (bannerUrl == null) {
-
 
148
			if (other.bannerUrl != null)
-
 
149
				return false;
-
 
150
		} else if (!bannerUrl.equals(other.bannerUrl))
-
 
151
			return false;
-
 
152
		if (fofoCatalogResponses == null) {
-
 
153
			if (other.fofoCatalogResponses != null)
-
 
154
				return false;
-
 
155
		} else if (!fofoCatalogResponses.equals(other.fofoCatalogResponses))
-
 
156
			return false;
-
 
157
		if (headerUrl == null) {
-
 
158
			if (other.headerUrl != null)
-
 
159
				return false;
-
 
160
		} else if (!headerUrl.equals(other.headerUrl))
-
 
161
			return false;
139
		if (id != other.id)
162
		if (id != other.id)
140
			return false;
163
			return false;
141
		if (rank != other.rank)
164
		if (rank != other.rank)
142
			return false;
165
			return false;
143
		if (title == null) {
166
		if (title == null) {