Subversion Repositories SmartDukaan

Rev

Rev 31860 | 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.time.LocalDateTime;
4
 
5
import javax.persistence.Column;
6
import javax.persistence.Entity;
7
import javax.persistence.GeneratedValue;
8
import javax.persistence.GenerationType;
9
import javax.persistence.Id;
10
import javax.persistence.Table;
11
 
12
@Entity
31860 tejbeer 13
@Table(name = "dtr.user_campaign")
25300 tejbeer 14
public class UserCampaign {
15
 
16
	@Id
17
	@Column(name = "id", unique = true, updatable = false)
18
	@GeneratedValue(strategy = GenerationType.IDENTITY)
19
	private int id;
20
 
21
	@Column(name = "user_id")
22
	private int userId;
23
 
24
	@Column(name = "campaign_id")
25
	private int campaignId;
26
 
27
	@Column(name = "pushTimestamp")
28
	private LocalDateTime pushTimestamp;
29
 
36528 vikas 30
	@Column(name = "read_timestamp")
31
	private LocalDateTime readTimestamp;
32
 
25300 tejbeer 33
	public int getId() {
34
		return id;
35
	}
36
 
37
	public void setId(int id) {
38
		this.id = id;
39
	}
40
 
41
	public int getUserId() {
42
		return userId;
43
	}
44
 
45
	public void setUserId(int userId) {
46
		this.userId = userId;
47
	}
48
 
49
	public int getCampaignId() {
50
		return campaignId;
51
	}
52
 
53
	public void setCampaignId(int campaignId) {
54
		this.campaignId = campaignId;
55
	}
56
 
57
	public LocalDateTime getPushTimestamp() {
58
		return pushTimestamp;
59
	}
60
 
61
	public void setPushTimestamp(LocalDateTime pushTimestamp) {
62
		this.pushTimestamp = pushTimestamp;
63
	}
64
 
36528 vikas 65
	public LocalDateTime getReadTimestamp() {
66
		return readTimestamp;
67
	}
68
 
69
	public void setReadTimestamp(LocalDateTime readTimestamp) {
70
		this.readTimestamp = readTimestamp;
71
	}
72
 
25300 tejbeer 73
	@Override
74
	public String toString() {
75
		return "UserCampaign [id=" + id + ", userId=" + userId + ", campaignId=" + campaignId + ", pushTimestamp="
76
				+ pushTimestamp + "]";
77
	}
78
 
79
}