Subversion Repositories SmartDukaan

Rev

Rev 32595 | 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
 
35375 aman 31
 
32
    @Column(name = "is_trial")
33
    private Boolean trial = false;
34
 
35
    @Column(name = "created_timestamp")
26959 tejbeer 36
	private LocalDateTime createdTimestamp;
37
 
38
	public LocalDateTime getCreatedTimestamp() {
39
		return createdTimestamp;
40
	}
41
 
42
	public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
43
		this.createdTimestamp = createdTimestamp;
44
	}
45
 
46
	public String getMediaType() {
47
		return mediaType;
48
	}
49
 
50
	public void setMediaType(String mediaType) {
51
		this.mediaType = mediaType;
52
	}
53
 
26958 tejbeer 54
	@JsonProperty(defaultValue = "0")
55
	@Column(name = "rank")
56
	private int rank;
57
 
58
	public int getId() {
59
		return id;
60
	}
61
 
62
	public void setId(int id) {
63
		this.id = id;
64
	}
65
 
66
	public int getBannerListingId() {
67
		return bannerListingId;
68
	}
69
 
70
	public void setBannerListingId(int bannerListingId) {
71
		this.bannerListingId = bannerListingId;
72
	}
73
 
35375 aman 74
    public Boolean getTrial() {
75
        return trial;
76
    }
32595 ranu 77
 
35375 aman 78
    public void setTrial(Boolean trial) {
79
        this.trial = trial;
80
    }
32595 ranu 81
 
26958 tejbeer 82
	public String getBannerUrl() {
83
		return bannerUrl;
84
	}
85
 
32595 ranu 86
	public String getTargetUrl() {
87
		return targetUrl;
88
	}
89
 
26958 tejbeer 90
	public void setBannerUrl(String bannerUrl) {
91
		this.bannerUrl = bannerUrl;
92
	}
93
 
32595 ranu 94
	public void setTargetUrl(String targetUrl) {
95
		this.targetUrl = targetUrl;
96
	}
97
 
26958 tejbeer 98
	public int getRank() {
99
		return rank;
100
	}
101
 
102
	public void setRank(int rank) {
103
		this.rank = rank;
104
	}
105
 
35375 aman 106
    @Override
107
    public boolean equals(Object o) {
108
        if (o == null || getClass() != o.getClass()) return false;
109
        BannerListingDetail that = (BannerListingDetail) o;
110
        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(trial, that.trial) && Objects.equals(createdTimestamp, that.createdTimestamp);
111
    }
26958 tejbeer 112
 
35375 aman 113
    @Override
114
    public int hashCode() {
115
        return Objects.hash(id, bannerListingId, bannerUrl, targetUrl, mediaType, trial, createdTimestamp, rank);
116
    }
117
 
118
    @Override
119
    public String toString() {
120
        return "BannerListingDetail{" +
121
                "id=" + id +
122
                ", bannerListingId=" + bannerListingId +
123
                ", bannerUrl='" + bannerUrl + '\'' +
124
                ", targetUrl='" + targetUrl + '\'' +
125
                ", mediaType='" + mediaType + '\'' +
126
                ", trial=" + trial +
127
                ", createdTimestamp=" + createdTimestamp +
128
                ", rank=" + rank +
129
                '}';
130
    }
26958 tejbeer 131
}