Subversion Repositories SmartDukaan

Rev

Rev 31860 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
26958 tejbeer 1
package com.spice.profitmandi.dao.entity.dtr;
2
 
32595 ranu 3
import com.fasterxml.jackson.annotation.JsonProperty;
4
 
5
import javax.persistence.*;
26959 tejbeer 6
import java.time.LocalDateTime;
32595 ranu 7
import java.util.Objects;
26959 tejbeer 8
 
26958 tejbeer 9
@Entity
31860 tejbeer 10
@Table(name = "dtr.banner_listing_detail")
26958 tejbeer 11
public class BannerListingDetail {
12
 
13
	private static final long serialVersionUID = 1L;
14
 
15
	@Id
16
	@GeneratedValue(strategy = GenerationType.IDENTITY)
17
	private int id;
18
 
19
	@Column(name = "banner_listing_id")
20
	private int bannerListingId;
21
 
22
	@Column(name = "banner_url")
23
	private String bannerUrl;
24
 
32595 ranu 25
	@Column(name = "target_url")
26
	private String targetUrl;
27
 
26959 tejbeer 28
	@Column(name = "media_type")
29
	private String mediaType;
30
 
31
	@Column(name = "created_timestamp")
32
	private LocalDateTime createdTimestamp;
33
 
34
	public LocalDateTime getCreatedTimestamp() {
35
		return createdTimestamp;
36
	}
37
 
38
	public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
39
		this.createdTimestamp = createdTimestamp;
40
	}
41
 
42
	public String getMediaType() {
43
		return mediaType;
44
	}
45
 
46
	public void setMediaType(String mediaType) {
47
		this.mediaType = mediaType;
48
	}
49
 
26958 tejbeer 50
	@JsonProperty(defaultValue = "0")
51
	@Column(name = "rank")
52
	private int rank;
53
 
54
	public int getId() {
55
		return id;
56
	}
57
 
58
	public void setId(int id) {
59
		this.id = id;
60
	}
61
 
62
	public int getBannerListingId() {
63
		return bannerListingId;
64
	}
65
 
66
	public void setBannerListingId(int bannerListingId) {
67
		this.bannerListingId = bannerListingId;
68
	}
69
 
32595 ranu 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
 
26958 tejbeer 83
	public String getBannerUrl() {
84
		return bannerUrl;
85
	}
86
 
32595 ranu 87
	public String getTargetUrl() {
88
		return targetUrl;
89
	}
90
 
26958 tejbeer 91
	public void setBannerUrl(String bannerUrl) {
92
		this.bannerUrl = bannerUrl;
93
	}
94
 
32595 ranu 95
	public void setTargetUrl(String targetUrl) {
96
		this.targetUrl = targetUrl;
97
	}
98
 
26958 tejbeer 99
	public int getRank() {
100
		return rank;
101
	}
102
 
103
	public void setRank(int rank) {
104
		this.rank = rank;
105
	}
106
 
107
	@Override
108
	public String toString() {
109
		return "BannerListingDetail [id=" + id + ", bannerListingId=" + bannerListingId + ", bannerUrl=" + bannerUrl
32595 ranu 110
				+ ", targetUrl=" + targetUrl + ", rank=" + rank + "]";
26958 tejbeer 111
	}
112
 
113
}