Subversion Repositories SmartDukaan

Rev

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

Rev 26734 Rev 26745
Line 1... Line 1...
1
package com.spice.profitmandi.dao.entity.dtr;
1
package com.spice.profitmandi.dao.entity.dtr;
2
 
2
 
3
import java.io.Serializable;
3
import java.io.Serializable;
-
 
4
import java.util.List;
4
 
5
 
5
import javax.persistence.Column;
6
import javax.persistence.Column;
6
import javax.persistence.Entity;
7
import javax.persistence.Entity;
7
import javax.persistence.GeneratedValue;
8
import javax.persistence.GeneratedValue;
8
import javax.persistence.GenerationType;
9
import javax.persistence.GenerationType;
9
import javax.persistence.Id;
10
import javax.persistence.Id;
10
import javax.persistence.Table;
11
import javax.persistence.Table;
-
 
12
import javax.persistence.Transient;
11
 
13
 
12
import com.fasterxml.jackson.annotation.JsonProperty;
14
import com.fasterxml.jackson.annotation.JsonProperty;
-
 
15
import com.spice.profitmandi.service.inventory.FofoCatalogResponse;
13
 
16
 
14
/**
17
/**
15
 * This class basically contains api details
18
 * This class basically contains api details
16
 * 
19
 * 
17
 * @author ashikali
20
 * @author ashikali
Line 39... Line 42...
39
	private String url;
42
	private String url;
40
	
43
	
41
	@Column
44
	@Column
42
	@JsonProperty(defaultValue="true")
45
	@JsonProperty(defaultValue="true")
43
	private boolean active=true;
46
	private boolean active=true;
-
 
47
	
-
 
48
	@Transient
-
 
49
	private List<FofoCatalogResponse> fofoCatalogResponses;
44
 
50
 
45
	@Override
51
	@Override
46
	public String toString() {
52
	public String toString() {
47
		return "WebListing [id=" + id + ", title=" + title + ", rank=" + rank + ", url=" + url + ", active=" + active
53
		return "WebListing [id=" + id + ", title=" + title + ", rank=" + rank + ", url=" + url + ", active=" + active
48
				+ "]";
54
				+ "]";
Line 97... Line 103...
97
		result = prime * result + rank;
103
		result = prime * result + rank;
98
		result = prime * result + ((title == null) ? 0 : title.hashCode());
104
		result = prime * result + ((title == null) ? 0 : title.hashCode());
99
		result = prime * result + ((url == null) ? 0 : url.hashCode());
105
		result = prime * result + ((url == null) ? 0 : url.hashCode());
100
		return result;
106
		return result;
101
	}
107
	}
-
 
108
	
-
 
109
	
-
 
110
 
-
 
111
	public List<FofoCatalogResponse> getFofoCatalogResponses() {
-
 
112
		return fofoCatalogResponses;
-
 
113
	}
-
 
114
 
-
 
115
	public void setFofoCatalogResponses(List<FofoCatalogResponse> fofoCatalogResponses) {
-
 
116
		this.fofoCatalogResponses = fofoCatalogResponses;
-
 
117
	}
102
 
118
 
103
	@Override
119
	@Override
104
	public boolean equals(Object obj) {
120
	public boolean equals(Object obj) {
105
		if (this == obj)
121
		if (this == obj)
106
			return true;
122
			return true;