Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
35626 amit 1
package com.spice.profitmandi.dao.entity.cs;
2
 
3
import javax.persistence.*;
4
import java.time.LocalDateTime;
5
 
6
@Entity
7
@Table(name = "cs.ticket_read_status")
8
public class TicketReadStatus {
9
 
10
	public enum UserType {
11
		AUTH_USER, PARTNER
12
	}
13
 
14
	@Id
15
	@Column
16
	@GeneratedValue(strategy = GenerationType.IDENTITY)
17
	private int id;
18
 
19
	@Column(name = "ticket_id")
20
	private int ticketId;
21
 
22
	@Column(name = "user_id")
23
	private int userId;
24
 
25
	@Column(name = "user_type")
26
	@Enumerated(EnumType.STRING)
27
	private UserType userType;
28
 
29
	@Column(name = "last_read_activity_id")
30
	private int lastReadActivityId;
31
 
32
	@Column(name = "read_timestamp")
33
	private LocalDateTime readTimestamp;
34
 
35
	public int getId() {
36
		return id;
37
	}
38
 
39
	public void setId(int id) {
40
		this.id = id;
41
	}
42
 
43
	public int getTicketId() {
44
		return ticketId;
45
	}
46
 
47
	public void setTicketId(int ticketId) {
48
		this.ticketId = ticketId;
49
	}
50
 
51
	public int getUserId() {
52
		return userId;
53
	}
54
 
55
	public void setUserId(int userId) {
56
		this.userId = userId;
57
	}
58
 
59
	public UserType getUserType() {
60
		return userType;
61
	}
62
 
63
	public void setUserType(UserType userType) {
64
		this.userType = userType;
65
	}
66
 
67
	public int getLastReadActivityId() {
68
		return lastReadActivityId;
69
	}
70
 
71
	public void setLastReadActivityId(int lastReadActivityId) {
72
		this.lastReadActivityId = lastReadActivityId;
73
	}
74
 
75
	public LocalDateTime getReadTimestamp() {
76
		return readTimestamp;
77
	}
78
 
79
	public void setReadTimestamp(LocalDateTime readTimestamp) {
80
		this.readTimestamp = readTimestamp;
81
	}
82
 
83
	@Override
84
	public String toString() {
85
		return "TicketReadStatus{" +
86
				"id=" + id +
87
				", ticketId=" + ticketId +
88
				", userId=" + userId +
89
				", userType=" + userType +
90
				", lastReadActivityId=" + lastReadActivityId +
91
				", readTimestamp=" + readTimestamp +
92
				'}';
93
	}
94
}