Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
27417 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.Convert;
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.convertor.LocalDateTimeAttributeConverter;
14
 
15
@Entity
16
@Table(name = "dtr.hypertrack_key", schema = "dtr")
17
public class HypertrackKey {
18
 
19
	@Id
20
	@Column(name = "id", updatable = false, unique = true)
21
	@GeneratedValue(strategy = GenerationType.IDENTITY)
22
	private int id;
23
 
24
	@Column(name = "device_id")
25
	private int deviceId;
26
 
27
	@Column(name = "user_id")
28
	private int userId;
29
 
30
	@Column(name = "hypertrack_key_id")
31
	private String hypertrackKeyId;
32
 
33
	@Convert(converter = LocalDateTimeAttributeConverter.class)
34
	@Column(name = "created_timestamp", updatable = false)
35
	private LocalDateTime createdTimestamp;
36
 
37
	@Convert(converter = LocalDateTimeAttributeConverter.class)
38
	@Column(name = "updated_timestamp")
39
	private LocalDateTime updatedTimestamp;
40
 
41
	public int getId() {
42
		return id;
43
	}
44
 
45
	public void setId(int id) {
46
		this.id = id;
47
	}
48
 
49
	public int getDeviceId() {
50
		return deviceId;
51
	}
52
 
53
	public void setDeviceId(int deviceId) {
54
		this.deviceId = deviceId;
55
	}
56
 
57
	public int getUserId() {
58
		return userId;
59
	}
60
 
61
	public void setUserId(int userId) {
62
		this.userId = userId;
63
	}
64
 
65
	public String getHypertrackKeyId() {
66
		return hypertrackKeyId;
67
	}
68
 
69
	public void setHypertrackKeyId(String hypertrackKeyId) {
70
		this.hypertrackKeyId = hypertrackKeyId;
71
	}
72
 
73
	public LocalDateTime getCreatedTimestamp() {
74
		return createdTimestamp;
75
	}
76
 
77
	public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
78
		this.createdTimestamp = createdTimestamp;
79
	}
80
 
81
	public LocalDateTime getUpdatedTimestamp() {
82
		return updatedTimestamp;
83
	}
84
 
85
	public void setUpdatedTimestamp(LocalDateTime updatedTimestamp) {
86
		this.updatedTimestamp = updatedTimestamp;
87
	}
88
 
89
	@Override
90
	public String toString() {
91
		return "HypertrackKey [id=" + id + ", deviceId=" + deviceId + ", userId=" + userId + ", hypertrackKeyId="
92
				+ hypertrackKeyId + ", createdTimestamp=" + createdTimestamp + ", updatedTimestamp=" + updatedTimestamp
93
				+ "]";
94
	}
95
 
96
}