Subversion Repositories SmartDukaan

Rev

Rev 24263 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
24098 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.Id;
8
import javax.persistence.Table;
9
 
10
@Entity
11
@Table(name = "dtr.notification_data", schema = "dtr")
12
public class NotificationData {
13
 
14
	@Id
15
	@Column(name = "id", unique = true, updatable = false)
16
	private int id;
17
 
18
	@Column(name = "data")
19
	private String data;
20
 
21
	@Column(name = "created_timestamp")
22
	private LocalDateTime created_timestamp = LocalDateTime.now();
23
 
24
	public int getId() {
25
		return id;
26
	}
27
 
28
	public void setId(int id) {
29
		this.id = id;
30
	}
31
 
32
	public String getData() {
33
		return data;
34
	}
35
 
36
	public void setData(String data) {
37
		this.data = data;
38
	}
39
 
40
	public LocalDateTime getCreated_timestamp() {
41
		return created_timestamp;
42
	}
43
 
44
	public void setCreated_timestamp(LocalDateTime created_timestamp) {
45
		this.created_timestamp = created_timestamp;
46
	}
47
 
48
	@Override
49
	public String toString() {
50
		return "NotificationData [id=" + id + ", data=" + data + ", created_timestamp=" + created_timestamp + "]";
51
	}
52
 
53
 
54
 
55
}