Subversion Repositories SmartDukaan

Rev

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

Rev 26745 Rev 28301
Line 19... Line 19...
19
 * 
19
 * 
20
 * @author ashikali
20
 * @author ashikali
21
 *
21
 *
22
 */
22
 */
23
@Entity
23
@Entity
24
@Table(name="dtr.web_listing", schema = "dtr")
24
@Table(name = "dtr.web_listing", schema = "dtr")
25
public class WebListing implements Serializable{
25
public class WebListing implements Serializable {
26
	
26
 
27
	private static final long serialVersionUID = 1L;
27
	private static final long serialVersionUID = 1L;
28
	@Id
28
	@Id
29
	@Column(name="id", columnDefinition = "int(10) unsigned")
29
	@Column(name = "id", columnDefinition = "int(10) unsigned")
30
	@GeneratedValue(strategy = GenerationType.IDENTITY)
30
	@GeneratedValue(strategy = GenerationType.IDENTITY)
31
	@JsonProperty(defaultValue="0")
31
	@JsonProperty(defaultValue = "0")
32
	private int id;
32
	private int id;
33
	
33
 
34
	@Column
34
	@Column
35
	private String title;
35
	private String title;
36
	
36
 
37
	@Column
37
	@Column
38
	@JsonProperty(defaultValue="0")
38
	@JsonProperty(defaultValue = "0")
39
	private int rank;
39
	private int rank;
40
	
40
 
41
	@Column
41
	@Column
42
	private String url;
42
	private String url;
-
 
43
 
-
 
44
	@Column
-
 
45
	private String bannerUrl;
43
	
46
 
44
	@Column
47
	@Column
45
	@JsonProperty(defaultValue="true")
48
	@JsonProperty(defaultValue = "true")
46
	private boolean active=true;
49
	private boolean active = true;
47
	
50
 
48
	@Transient
51
	@Transient
49
	private List<FofoCatalogResponse> fofoCatalogResponses;
52
	private List<FofoCatalogResponse> fofoCatalogResponses;
50
 
53
 
51
	@Override
54
	@Override
52
	public String toString() {
55
	public String toString() {
53
		return "WebListing [id=" + id + ", title=" + title + ", rank=" + rank + ", url=" + url + ", active=" + active
56
		return "WebListing [id=" + id + ", title=" + title + ", rank=" + rank + ", url=" + url + ", active=" + active
54
				+ "]";
57
				+ "]";
55
	}
58
	}
56
 
59
 
-
 
60
	public String getBannerUrl() {
-
 
61
		return bannerUrl;
-
 
62
	}
-
 
63
 
-
 
64
	public void setBannerUrl(String bannerUrl) {
-
 
65
		this.bannerUrl = bannerUrl;
-
 
66
	}
-
 
67
 
57
	public int getId() {
68
	public int getId() {
58
		return id;
69
		return id;
59
	}
70
	}
60
 
71
 
61
	public void setId(int id) {
72
	public void setId(int id) {
Line 83... Line 94...
83
	}
94
	}
84
 
95
 
85
	public void setActive(boolean active) {
96
	public void setActive(boolean active) {
86
		this.active = active;
97
		this.active = active;
87
	}
98
	}
88
	
99
 
89
	public String getUrl() {
100
	public String getUrl() {
90
		return url;
101
		return url;
91
	}
102
	}
92
 
103
 
93
	public void setUrl(String url) {
104
	public void setUrl(String url) {
Line 103... Line 114...
103
		result = prime * result + rank;
114
		result = prime * result + rank;
104
		result = prime * result + ((title == null) ? 0 : title.hashCode());
115
		result = prime * result + ((title == null) ? 0 : title.hashCode());
105
		result = prime * result + ((url == null) ? 0 : url.hashCode());
116
		result = prime * result + ((url == null) ? 0 : url.hashCode());
106
		return result;
117
		return result;
107
	}
118
	}
108
	
-
 
109
	
-
 
110
 
119
 
111
	public List<FofoCatalogResponse> getFofoCatalogResponses() {
120
	public List<FofoCatalogResponse> getFofoCatalogResponses() {
112
		return fofoCatalogResponses;
121
		return fofoCatalogResponses;
113
	}
122
	}
114
 
123
 
Line 141... Line 150...
141
				return false;
150
				return false;
142
		} else if (!url.equals(other.url))
151
		} else if (!url.equals(other.url))
143
			return false;
152
			return false;
144
		return true;
153
		return true;
145
	}
154
	}
146
	
-
 
147
	
155
 
148
}
156
}
149
157