| 35549 |
ranu |
1 |
package com.spice.profitmandi.dao.entity.cs;
|
|
|
2 |
|
|
|
3 |
import javax.persistence.*;
|
|
|
4 |
import java.io.Serializable;
|
|
|
5 |
import java.time.LocalDateTime;
|
|
|
6 |
import java.util.Objects;
|
|
|
7 |
|
|
|
8 |
@Entity
|
|
|
9 |
@Table(name = "cs.bulletin")
|
|
|
10 |
public class Bulletin implements Serializable {
|
|
|
11 |
private static final long serialVersionUID = 1L;
|
|
|
12 |
|
|
|
13 |
@Id
|
|
|
14 |
@Column(name = "id", unique = true, updatable = false)
|
|
|
15 |
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
16 |
private long id;
|
|
|
17 |
|
|
|
18 |
@Column(name = "description", columnDefinition = "TEXT")
|
|
|
19 |
private String description;
|
|
|
20 |
|
|
|
21 |
@Column(name = "region_id", nullable = false)
|
|
|
22 |
private long regionId;
|
|
|
23 |
|
|
|
24 |
@Column(name = "document_ids", length = 500)
|
|
|
25 |
private String documentIds;
|
|
|
26 |
|
|
|
27 |
@Column(name = "created_at", nullable = false)
|
|
|
28 |
private LocalDateTime createdAt;
|
|
|
29 |
|
| 35583 |
ranu |
30 |
@Column(name = "created_by", nullable = false)
|
|
|
31 |
private String createdBy;
|
|
|
32 |
|
| 35549 |
ranu |
33 |
@Transient
|
|
|
34 |
private String displayTime;
|
|
|
35 |
|
|
|
36 |
public String getDisplayTime() {
|
|
|
37 |
return displayTime;
|
|
|
38 |
}
|
|
|
39 |
|
|
|
40 |
public void setDisplayTime(String displayTime) {
|
|
|
41 |
this.displayTime = displayTime;
|
|
|
42 |
}
|
|
|
43 |
|
|
|
44 |
|
|
|
45 |
public long getId() {
|
|
|
46 |
return id;
|
|
|
47 |
}
|
|
|
48 |
|
|
|
49 |
public void setId(long id) {
|
|
|
50 |
this.id = id;
|
|
|
51 |
}
|
|
|
52 |
|
|
|
53 |
public String getDescription() {
|
|
|
54 |
return description;
|
|
|
55 |
}
|
|
|
56 |
|
|
|
57 |
public void setDescription(String description) {
|
|
|
58 |
this.description = description;
|
|
|
59 |
}
|
|
|
60 |
|
|
|
61 |
public long getRegionId() {
|
|
|
62 |
return regionId;
|
|
|
63 |
}
|
|
|
64 |
|
|
|
65 |
public void setRegionId(long regionId) {
|
|
|
66 |
this.regionId = regionId;
|
|
|
67 |
}
|
|
|
68 |
|
|
|
69 |
public LocalDateTime getCreatedAt() {
|
|
|
70 |
return createdAt;
|
|
|
71 |
}
|
|
|
72 |
|
|
|
73 |
public void setCreatedAt(LocalDateTime createdAt) {
|
|
|
74 |
this.createdAt = createdAt;
|
|
|
75 |
}
|
|
|
76 |
|
|
|
77 |
public String getDocumentIds() {
|
|
|
78 |
return documentIds;
|
|
|
79 |
}
|
|
|
80 |
|
|
|
81 |
public void setDocumentIds(String documentIds) {
|
|
|
82 |
this.documentIds = documentIds;
|
|
|
83 |
}
|
|
|
84 |
|
| 35583 |
ranu |
85 |
public String getCreatedBy() {
|
|
|
86 |
return createdBy;
|
|
|
87 |
}
|
|
|
88 |
|
|
|
89 |
public void setCreatedBy(String createdBy) {
|
|
|
90 |
this.createdBy = createdBy;
|
|
|
91 |
}
|
|
|
92 |
|
| 35549 |
ranu |
93 |
@Override
|
|
|
94 |
public boolean equals(Object o) {
|
|
|
95 |
if (this == o) return true;
|
|
|
96 |
if (o == null || getClass() != o.getClass()) return false;
|
|
|
97 |
Bulletin bulletin = (Bulletin) o;
|
| 35583 |
ranu |
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);
|
| 35549 |
ranu |
99 |
}
|
|
|
100 |
|
|
|
101 |
@Override
|
|
|
102 |
public int hashCode() {
|
| 35583 |
ranu |
103 |
return Objects.hash(id, description, regionId, documentIds, createdAt, createdBy, displayTime);
|
| 35549 |
ranu |
104 |
}
|
|
|
105 |
|
|
|
106 |
@Override
|
|
|
107 |
public String toString() {
|
|
|
108 |
return "Bulletin{" +
|
|
|
109 |
"id=" + id +
|
|
|
110 |
", description='" + description + '\'' +
|
|
|
111 |
", regionId=" + regionId +
|
|
|
112 |
", documentIds='" + documentIds + '\'' +
|
|
|
113 |
", createdAt=" + createdAt +
|
| 35583 |
ranu |
114 |
", createdBy='" + createdBy + '\'' +
|
| 35549 |
ranu |
115 |
", displayTime='" + displayTime + '\'' +
|
|
|
116 |
'}';
|
|
|
117 |
}
|
|
|
118 |
}
|