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 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 ...