Ticket management
In order to create a ticket, we need to create a Ticket
class and store the tickets in the list. We will talk more about the Ticket
class, ticket list, and other ticket-related work, such as user Ticket management, admin Ticket management, and CSR Ticket management.
Ticket POJO
We will create a Ticket
class with some basic variables involved to store all details related to ticket. The following code will help us understand the Ticket
class:
public class Ticket { private Integer ticketid; private Integer creatorid; private Date createdat; private String content; private Integer severity; private Integer status; // getter and setter methods @Override public String toString() { return "Ticket [ticketid=" + ticketid + ", creatorid=" + creatorid + ", createdat=" + createdat + ", content=" + content + ", severity=" + severity + ", status=" + status + "]"; } private static Integer ticketCounter = 300; public Ticket(Integer...