| 25300 |
tejbeer |
1 |
package com.spice.profitmandi.dao.entity.dtr;
|
|
|
2 |
|
|
|
3 |
import java.io.Serializable;
|
|
|
4 |
import java.time.LocalDateTime;
|
|
|
5 |
|
|
|
6 |
import javax.persistence.Column;
|
|
|
7 |
import javax.persistence.Entity;
|
|
|
8 |
import javax.persistence.GeneratedValue;
|
|
|
9 |
import javax.persistence.GenerationType;
|
|
|
10 |
import javax.persistence.Id;
|
|
|
11 |
import javax.persistence.Table;
|
|
|
12 |
|
|
|
13 |
import com.spice.profitmandi.dao.model.SimpleCampaignParams;
|
|
|
14 |
|
|
|
15 |
@SuppressWarnings("serial")
|
|
|
16 |
@Entity
|
|
|
17 |
@Table(name = "dtr.notification_campaign", schema = "dtr")
|
|
|
18 |
public class NotificationCampaign implements Serializable {
|
|
|
19 |
|
|
|
20 |
@Id
|
|
|
21 |
@Column(name = "id", unique = true, updatable = false)
|
|
|
22 |
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
23 |
private int id;
|
|
|
24 |
|
|
|
25 |
@Column(name = "name")
|
|
|
26 |
private String name;
|
|
|
27 |
|
|
|
28 |
@Column(name = "implementation_type")
|
|
|
29 |
private String implementationType;
|
|
|
30 |
|
|
|
31 |
@Column(name = "implementation_param")
|
|
|
32 |
private String implementationParams;
|
|
|
33 |
|
| 25649 |
tejbeer |
34 |
@Column(name = "is_annoucement")
|
|
|
35 |
private boolean isAnnoucement;
|
|
|
36 |
|
|
|
37 |
public boolean isAnnoucement() {
|
|
|
38 |
return isAnnoucement;
|
|
|
39 |
}
|
|
|
40 |
|
|
|
41 |
public void setAnnoucement(boolean isAnnoucement) {
|
|
|
42 |
this.isAnnoucement = isAnnoucement;
|
|
|
43 |
}
|
|
|
44 |
|
| 25300 |
tejbeer |
45 |
@Column(name = "created_timestamp")
|
|
|
46 |
private LocalDateTime createdTimestamp;
|
|
|
47 |
|
|
|
48 |
public LocalDateTime getCreatedTimestamp() {
|
|
|
49 |
return createdTimestamp;
|
|
|
50 |
}
|
|
|
51 |
|
|
|
52 |
public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
|
|
|
53 |
this.createdTimestamp = createdTimestamp;
|
|
|
54 |
}
|
|
|
55 |
|
|
|
56 |
public int getId() {
|
|
|
57 |
return id;
|
|
|
58 |
}
|
|
|
59 |
|
|
|
60 |
public void setId(int id) {
|
|
|
61 |
this.id = id;
|
|
|
62 |
}
|
|
|
63 |
|
|
|
64 |
public String getName() {
|
|
|
65 |
return name;
|
|
|
66 |
}
|
|
|
67 |
|
|
|
68 |
public void setName(String name) {
|
|
|
69 |
this.name = name;
|
|
|
70 |
}
|
|
|
71 |
|
|
|
72 |
public String getImplementationType() {
|
|
|
73 |
return implementationType;
|
|
|
74 |
}
|
|
|
75 |
|
|
|
76 |
public void setImplementationType(String implementationType) {
|
|
|
77 |
this.implementationType = implementationType;
|
|
|
78 |
}
|
|
|
79 |
|
|
|
80 |
public String getImplementationParams() {
|
|
|
81 |
return implementationParams;
|
|
|
82 |
}
|
|
|
83 |
|
|
|
84 |
public void setImplementationParams(String implementationParams) {
|
|
|
85 |
this.implementationParams = implementationParams;
|
|
|
86 |
}
|
|
|
87 |
|
|
|
88 |
@Override
|
|
|
89 |
public String toString() {
|
|
|
90 |
return "NotificationCampaign [id=" + id + ", name=" + name + ", implementationType=" + implementationType
|
| 25649 |
tejbeer |
91 |
+ ", implementationParams=" + implementationParams + ", isAnnoucement=" + isAnnoucement
|
|
|
92 |
+ ", createdTimestamp=" + createdTimestamp + "]";
|
| 25300 |
tejbeer |
93 |
}
|
|
|
94 |
|
| 25649 |
tejbeer |
95 |
|
|
|
96 |
|
| 25300 |
tejbeer |
97 |
}
|