Subversion Repositories SmartDukaan

Rev

Rev 32595 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32595 Rev 35375
Line 26... Line 26...
26
	private String targetUrl;
26
	private String targetUrl;
27
 
27
 
28
	@Column(name = "media_type")
28
	@Column(name = "media_type")
29
	private String mediaType;
29
	private String mediaType;
30
 
30
 
-
 
31
 
-
 
32
    @Column(name = "is_trial")
-
 
33
    private Boolean trial = false;
-
 
34
 
31
	@Column(name = "created_timestamp")
35
    @Column(name = "created_timestamp")
32
	private LocalDateTime createdTimestamp;
36
	private LocalDateTime createdTimestamp;
33
 
37
 
34
	public LocalDateTime getCreatedTimestamp() {
38
	public LocalDateTime getCreatedTimestamp() {
35
		return createdTimestamp;
39
		return createdTimestamp;
36
	}
40
	}
Line 65... Line 69...
65
 
69
 
66
	public void setBannerListingId(int bannerListingId) {
70
	public void setBannerListingId(int bannerListingId) {
67
		this.bannerListingId = bannerListingId;
71
		this.bannerListingId = bannerListingId;
68
	}
72
	}
69
 
73
 
70
	@Override
-
 
71
	public boolean equals(Object o) {
74
    public Boolean getTrial() {
72
		if (this == o) return true;
75
        return trial;
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
    }
76
	}
-
 
77
 
77
 
78
	@Override
-
 
79
	public int hashCode() {
78
    public void setTrial(Boolean trial) {
80
		return Objects.hash(id, bannerListingId, bannerUrl, targetUrl, mediaType, createdTimestamp, rank);
79
        this.trial = trial;
81
	}
80
    }
82
 
81
 
83
	public String getBannerUrl() {
82
	public String getBannerUrl() {
84
		return bannerUrl;
83
		return bannerUrl;
85
	}
84
	}
86
 
85
 
Line 102... Line 101...
102
 
101
 
103
	public void setRank(int rank) {
102
	public void setRank(int rank) {
104
		this.rank = rank;
103
		this.rank = rank;
105
	}
104
	}
106
 
105
 
107
	@Override
106
    @Override
108
	public String toString() {
107
    public boolean equals(Object o) {
-
 
108
        if (o == null || getClass() != o.getClass()) return false;
109
		return "BannerListingDetail [id=" + id + ", bannerListingId=" + bannerListingId + ", bannerUrl=" + bannerUrl
109
        BannerListingDetail that = (BannerListingDetail) o;
110
				+ ", targetUrl=" + targetUrl + ", rank=" + rank + "]";
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
    }
111
	}
112
 
-
 
113
    @Override
-
 
114
    public int hashCode() {
-
 
115
        return Objects.hash(id, bannerListingId, bannerUrl, targetUrl, mediaType, trial, createdTimestamp, rank);
-
 
116
    }
112
 
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
    }
113
}
131
}