Subversion Repositories SmartDukaan

Rev

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

Rev 35549 Rev 35583
Line 13... Line 13...
13
    @Id
13
    @Id
14
    @Column(name = "id", unique = true, updatable = false)
14
    @Column(name = "id", unique = true, updatable = false)
15
    @GeneratedValue(strategy = GenerationType.IDENTITY)
15
    @GeneratedValue(strategy = GenerationType.IDENTITY)
16
    private long id;
16
    private long id;
17
 
17
 
18
    @Column(name = "title", nullable = false)
-
 
19
    private String title;
-
 
20
 
-
 
21
    @Column(name = "description", columnDefinition = "TEXT")
18
    @Column(name = "description", columnDefinition = "TEXT")
22
    private String description;
19
    private String description;
23
 
20
 
24
    @Column(name = "region_id", nullable = false)
21
    @Column(name = "region_id", nullable = false)
25
    private long regionId;
22
    private long regionId;
Line 28... Line 25...
28
    private String documentIds;
25
    private String documentIds;
29
 
26
 
30
    @Column(name = "created_at", nullable = false)
27
    @Column(name = "created_at", nullable = false)
31
    private LocalDateTime createdAt;
28
    private LocalDateTime createdAt;
32
 
29
 
-
 
30
    @Column(name = "created_by", nullable = false)
-
 
31
    private String createdBy;
-
 
32
 
33
    @Transient
33
    @Transient
34
    private String displayTime;
34
    private String displayTime;
35
 
35
 
36
    public String getDisplayTime() {
36
    public String getDisplayTime() {
37
        return displayTime;
37
        return displayTime;
Line 48... Line 48...
48
 
48
 
49
    public void setId(long id) {
49
    public void setId(long id) {
50
        this.id = id;
50
        this.id = id;
51
    }
51
    }
52
 
52
 
53
    public String getTitle() {
-
 
54
        return title;
-
 
55
    }
-
 
56
 
-
 
57
    public void setTitle(String title) {
-
 
58
        this.title = title;
-
 
59
    }
-
 
60
 
-
 
61
    public String getDescription() {
53
    public String getDescription() {
62
        return description;
54
        return description;
63
    }
55
    }
64
 
56
 
65
    public void setDescription(String description) {
57
    public void setDescription(String description) {
Line 88... Line 80...
88
 
80
 
89
    public void setDocumentIds(String documentIds) {
81
    public void setDocumentIds(String documentIds) {
90
        this.documentIds = documentIds;
82
        this.documentIds = documentIds;
91
    }
83
    }
92
 
84
 
-
 
85
    public String getCreatedBy() {
-
 
86
        return createdBy;
-
 
87
    }
-
 
88
 
-
 
89
    public void setCreatedBy(String createdBy) {
-
 
90
        this.createdBy = createdBy;
-
 
91
    }
-
 
92
 
93
    @Override
93
    @Override
94
    public boolean equals(Object o) {
94
    public boolean equals(Object o) {
95
        if (this == o) return true;
95
        if (this == o) return true;
96
        if (o == null || getClass() != o.getClass()) return false;
96
        if (o == null || getClass() != o.getClass()) return false;
97
        Bulletin bulletin = (Bulletin) o;
97
        Bulletin bulletin = (Bulletin) o;
98
        return id == bulletin.id && regionId == bulletin.regionId && Objects.equals(title, bulletin.title) && Objects.equals(description, bulletin.description) && Objects.equals(documentIds, bulletin.documentIds) && Objects.equals(createdAt, bulletin.createdAt) && Objects.equals(displayTime, bulletin.displayTime);
98
        return id == bulletin.id && regionId == bulletin.regionId && Objects.equals(description, bulletin.description) && Objects.equals(documentIds, bulletin.documentIds) && Objects.equals(createdAt, bulletin.createdAt) && Objects.equals(createdBy, bulletin.createdBy) && Objects.equals(displayTime, bulletin.displayTime);
99
    }
99
    }
100
 
100
 
101
    @Override
101
    @Override
102
    public int hashCode() {
102
    public int hashCode() {
103
        return Objects.hash(id, title, description, regionId, documentIds, createdAt, displayTime);
103
        return Objects.hash(id, description, regionId, documentIds, createdAt, createdBy, displayTime);
104
    }
104
    }
105
 
105
 
106
    @Override
106
    @Override
107
    public String toString() {
107
    public String toString() {
108
        return "Bulletin{" +
108
        return "Bulletin{" +
109
                "id=" + id +
109
                "id=" + id +
110
                ", title='" + title + '\'' +
-
 
111
                ", description='" + description + '\'' +
110
                ", description='" + description + '\'' +
112
                ", regionId=" + regionId +
111
                ", regionId=" + regionId +
113
                ", documentIds='" + documentIds + '\'' +
112
                ", documentIds='" + documentIds + '\'' +
114
                ", createdAt=" + createdAt +
113
                ", createdAt=" + createdAt +
-
 
114
                ", createdBy='" + createdBy + '\'' +
115
                ", displayTime='" + displayTime + '\'' +
115
                ", displayTime='" + displayTime + '\'' +
116
                '}';
116
                '}';
117
    }
117
    }
118
}
118
}