Subversion Repositories SmartDukaan

Rev

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

Rev 33443 Rev 33501
Line 28... Line 28...
28
    private String title;
28
    private String title;
29
 
29
 
30
    @Column(name = "img_url")
30
    @Column(name = "img_url")
31
    private String imgUrl;
31
    private String imgUrl;
32
 
32
 
-
 
33
    @Column(name = "thumbnail_url")
-
 
34
    private String thumbnailUrl;
-
 
35
 
33
    @Column(name = "start_date")
36
    @Column(name = "start_date")
34
    private LocalDateTime startDate;
37
    private LocalDateTime startDate;
35
 
38
 
36
    @Column(name = "end_date")
39
    @Column(name = "end_date")
37
    private LocalDateTime endDate;
40
    private LocalDateTime endDate;
Line 62... Line 65...
62
 
65
 
63
    public void setImgUrl(String imgUrl) {
66
    public void setImgUrl(String imgUrl) {
64
        this.imgUrl = imgUrl;
67
        this.imgUrl = imgUrl;
65
    }
68
    }
66
 
69
 
-
 
70
    public String getThumbnailUrl() {
-
 
71
        return thumbnailUrl;
-
 
72
    }
-
 
73
 
-
 
74
    public void setThumbnailUrl(String thumbnailUrl) {
-
 
75
        this.thumbnailUrl = thumbnailUrl;
-
 
76
    }
-
 
77
 
67
    public LocalDateTime getStartDate() {
78
    public LocalDateTime getStartDate() {
68
        return startDate;
79
        return startDate;
69
    }
80
    }
70
 
81
 
71
    public void setStartDate(LocalDateTime startDate) {
82
    public void setStartDate(LocalDateTime startDate) {
Line 115... Line 126...
115
    @Override
126
    @Override
116
    public boolean equals(Object o) {
127
    public boolean equals(Object o) {
117
        if (this == o) return true;
128
        if (this == o) return true;
118
        if (o == null || getClass() != o.getClass()) return false;
129
        if (o == null || getClass() != o.getClass()) return false;
119
        PrintResource that = (PrintResource) o;
130
        PrintResource that = (PrintResource) o;
120
        return id == that.id && Objects.equals(title, that.title) && Objects.equals(imgUrl, that.imgUrl) && Objects.equals(startDate, that.startDate) && Objects.equals(endDate, that.endDate) && Objects.equals(createTimestamp, that.createTimestamp);
131
        return id == that.id && Objects.equals(title, that.title) && Objects.equals(imgUrl, that.imgUrl) && Objects.equals(thumbnailUrl, that.thumbnailUrl) && Objects.equals(startDate, that.startDate) && Objects.equals(endDate, that.endDate) && Objects.equals(createTimestamp, that.createTimestamp);
121
    }
132
    }
122
 
133
 
123
    @Override
134
    @Override
124
    public int hashCode() {
135
    public int hashCode() {
125
        return Objects.hash(id, title, imgUrl, startDate, endDate, createTimestamp);
136
        return Objects.hash(id, title, imgUrl, thumbnailUrl, startDate, endDate, createTimestamp);
126
    }
137
    }
127
 
138
 
128
    @Override
139
    @Override
129
    public String toString() {
140
    public String toString() {
130
        return "PrintResource{" +
141
        return "PrintResource{" +
131
                "id=" + id +
142
                "id=" + id +
132
                ", title='" + title + '\'' +
143
                ", title='" + title + '\'' +
133
                ", imgUrl='" + imgUrl + '\'' +
144
                ", imgUrl='" + imgUrl + '\'' +
-
 
145
                ", thumbnailUrl='" + thumbnailUrl + '\'' +
134
                ", startDate=" + startDate +
146
                ", startDate=" + startDate +
135
                ", endDate=" + endDate +
147
                ", endDate=" + endDate +
136
                ", createTimestamp=" + createTimestamp +
148
                ", createTimestamp=" + createTimestamp +
137
                '}';
149
                '}';
138
    }
150
    }