Blame | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.cs;import javax.persistence.*;import java.time.LocalDateTime;@Entity@Table(name = "cs.ticket_read_status")public class TicketReadStatus {public enum UserType {AUTH_USER, PARTNER}@Id@Column@GeneratedValue(strategy = GenerationType.IDENTITY)private int id;@Column(name = "ticket_id")private int ticketId;@Column(name = "user_id")private int userId;@Column(name = "user_type")@Enumerated(EnumType.STRING)private UserType userType;@Column(name = "last_read_activity_id")private int lastReadActivityId;@Column(name = "read_timestamp")private LocalDateTime readTimestamp;public int getId() {return id;}public void setId(int id) {this.id = id;}public int getTicketId() {return ticketId;}public void setTicketId(int ticketId) {this.ticketId = ticketId;}public int getUserId() {return userId;}public void setUserId(int userId) {this.userId = userId;}public UserType getUserType() {return userType;}public void setUserType(UserType userType) {this.userType = userType;}public int getLastReadActivityId() {return lastReadActivityId;}public void setLastReadActivityId(int lastReadActivityId) {this.lastReadActivityId = lastReadActivityId;}public LocalDateTime getReadTimestamp() {return readTimestamp;}public void setReadTimestamp(LocalDateTime readTimestamp) {this.readTimestamp = readTimestamp;}@Overridepublic String toString() {return "TicketReadStatus{" +"id=" + id +", ticketId=" + ticketId +", userId=" + userId +", userType=" + userType +", lastReadActivityId=" + lastReadActivityId +", readTimestamp=" + readTimestamp +'}';}}