Subversion Repositories SmartDukaan

Rev

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

Rev 31860 Rev 32595
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.time.LocalDateTime;
-
 
4
 
-
 
5
import javax.persistence.Column;
-
 
6
import javax.persistence.Entity;
-
 
7
import javax.persistence.GeneratedValue;
-
 
8
import javax.persistence.GenerationType;
-
 
9
import javax.persistence.Id;
-
 
10
import javax.persistence.Table;
-
 
11
 
-
 
12
import com.fasterxml.jackson.annotation.JsonProperty;
3
import com.fasterxml.jackson.annotation.JsonProperty;
13
 
4
 
-
 
5
import javax.persistence.*;
-
 
6
import java.time.LocalDateTime;
-
 
7
import java.util.Objects;
-
 
8
 
14
@Entity
9
@Entity
15
@Table(name = "dtr.banner_listing_detail")
10
@Table(name = "dtr.banner_listing_detail")
16
public class BannerListingDetail {
11
public class BannerListingDetail {
17
 
12
 
18
	private static final long serialVersionUID = 1L;
13
	private static final long serialVersionUID = 1L;
Line 25... Line 20...
25
	private int bannerListingId;
20
	private int bannerListingId;
26
 
21
 
27
	@Column(name = "banner_url")
22
	@Column(name = "banner_url")
28
	private String bannerUrl;
23
	private String bannerUrl;
29
 
24
 
-
 
25
	@Column(name = "target_url")
-
 
26
	private String targetUrl;
-
 
27
 
30
	@Column(name = "media_type")
28
	@Column(name = "media_type")
31
	private String mediaType;
29
	private String mediaType;
32
 
30
 
33
	@Column(name = "created_timestamp")
31
	@Column(name = "created_timestamp")
34
	private LocalDateTime createdTimestamp;
32
	private LocalDateTime createdTimestamp;
Line 67... Line 65...
67
 
65
 
68
	public void setBannerListingId(int bannerListingId) {
66
	public void setBannerListingId(int bannerListingId) {
69
		this.bannerListingId = bannerListingId;
67
		this.bannerListingId = bannerListingId;
70
	}
68
	}
71
 
69
 
-
 
70
	@Override
-
 
71
	public boolean equals(Object o) {
-
 
72
		if (this == o) return true;
-
 
73
		if (o == null || getClass() != o.getClass()) return false;
-
 
74
		BannerListingDetail that = (BannerListingDetail) o;
-
 
75
		return id == that.id && bannerListingId == that.bannerListingId && rank == that.rank && Objects.equals(bannerUrl, that.bannerUrl) && Objects.equals(targetUrl, that.targetUrl) && Objects.equals(mediaType, that.mediaType) && Objects.equals(createdTimestamp, that.createdTimestamp);
-
 
76
	}
-
 
77
 
-
 
78
	@Override
-
 
79
	public int hashCode() {
-
 
80
		return Objects.hash(id, bannerListingId, bannerUrl, targetUrl, mediaType, createdTimestamp, rank);
-
 
81
	}
-
 
82
 
72
	public String getBannerUrl() {
83
	public String getBannerUrl() {
73
		return bannerUrl;
84
		return bannerUrl;
74
	}
85
	}
75
 
86
 
-
 
87
	public String getTargetUrl() {
-
 
88
		return targetUrl;
-
 
89
	}
-
 
90
 
76
	public void setBannerUrl(String bannerUrl) {
91
	public void setBannerUrl(String bannerUrl) {
77
		this.bannerUrl = bannerUrl;
92
		this.bannerUrl = bannerUrl;
78
	}
93
	}
79
 
94
 
-
 
95
	public void setTargetUrl(String targetUrl) {
-
 
96
		this.targetUrl = targetUrl;
-
 
97
	}
-
 
98
 
80
	public int getRank() {
99
	public int getRank() {
81
		return rank;
100
		return rank;
82
	}
101
	}
83
 
102
 
84
	public void setRank(int rank) {
103
	public void setRank(int rank) {
Line 86... Line 105...
86
	}
105
	}
87
 
106
 
88
	@Override
107
	@Override
89
	public String toString() {
108
	public String toString() {
90
		return "BannerListingDetail [id=" + id + ", bannerListingId=" + bannerListingId + ", bannerUrl=" + bannerUrl
109
		return "BannerListingDetail [id=" + id + ", bannerListingId=" + bannerListingId + ", bannerUrl=" + bannerUrl
91
				+ ", rank=" + rank + "]";
110
				+ ", targetUrl=" + targetUrl + ", rank=" + rank + "]";
92
	}
111
	}
93
 
112
 
94
}
113
}