Subversion Repositories SmartDukaan

Rev

Rev 25683 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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;
25683 tejbeer 8
import javax.persistence.EnumType;
9
import javax.persistence.Enumerated;
25300 tejbeer 10
import javax.persistence.GeneratedValue;
11
import javax.persistence.GenerationType;
12
import javax.persistence.Id;
13
import javax.persistence.Table;
14
 
25683 tejbeer 15
import com.spice.profitmandi.common.enumuration.MessageType;
25300 tejbeer 16
import com.spice.profitmandi.dao.model.SimpleCampaignParams;
17
 
18
@SuppressWarnings("serial")
19
@Entity
31860 tejbeer 20
@Table(name = "dtr.notification_campaign")
25300 tejbeer 21
public class NotificationCampaign implements Serializable {
22
 
23
	@Id
24
	@Column(name = "id", unique = true, updatable = false)
25
	@GeneratedValue(strategy = GenerationType.IDENTITY)
26
	private int id;
27
 
28
	@Column(name = "name")
29
	private String name;
30
 
31
	@Column(name = "implementation_type")
32
	private String implementationType;
33
 
34
	@Column(name = "implementation_param")
35
	private String implementationParams;
36
 
25683 tejbeer 37
	@Column(name = "message_type")
38
	@Enumerated(EnumType.STRING)
39
	private MessageType messageType;
25649 tejbeer 40
 
25651 tejbeer 41
	@Column(name = "document_id")
42
	private Integer documentId;
43
 
44
	public Integer getDocumentId() {
45
		return documentId;
46
	}
47
 
48
	public void setDocumentId(Integer documentId) {
49
		this.documentId = documentId;
50
	}
51
 
25683 tejbeer 52
	public MessageType getMessageType() {
53
		return messageType;
25649 tejbeer 54
	}
55
 
25683 tejbeer 56
	public void setMessageType(MessageType messageType) {
57
		this.messageType = messageType;
25649 tejbeer 58
	}
59
 
25300 tejbeer 60
	@Column(name = "created_timestamp")
61
	private LocalDateTime createdTimestamp;
62
 
63
	public LocalDateTime getCreatedTimestamp() {
64
		return createdTimestamp;
65
	}
66
 
67
	public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
68
		this.createdTimestamp = createdTimestamp;
69
	}
70
 
71
	public int getId() {
72
		return id;
73
	}
74
 
75
	public void setId(int id) {
76
		this.id = id;
77
	}
78
 
79
	public String getName() {
80
		return name;
81
	}
82
 
83
	public void setName(String name) {
84
		this.name = name;
85
	}
86
 
87
	public String getImplementationType() {
88
		return implementationType;
89
	}
90
 
91
	public void setImplementationType(String implementationType) {
92
		this.implementationType = implementationType;
93
	}
94
 
95
	public String getImplementationParams() {
96
		return implementationParams;
97
	}
98
 
99
	public void setImplementationParams(String implementationParams) {
100
		this.implementationParams = implementationParams;
101
	}
102
 
103
	@Override
104
	public String toString() {
105
		return "NotificationCampaign [id=" + id + ", name=" + name + ", implementationType=" + implementationType
25683 tejbeer 106
				+ ", implementationParams=" + implementationParams + ", messageType=" + messageType + ", documentId="
107
				+ documentId + ", createdTimestamp=" + createdTimestamp + "]";
25300 tejbeer 108
	}
109
 
110
}