Class Ticket
java.lang.Object
de.bytestore.hostinger.entity.support.Ticket
Represents a Ticket entity with information related to a ticket's ID, category, name, author, status, priority,
and timestamps for creation and modification.
This class is an entity managed by JPA and annotated for integration with Jmix framework.
It is mapped to the "HOST_TICKETS" database table and defines indexes for performance optimization.
Fields:
- id: Unique identifier for the ticket.
- category: The category to which the ticket belongs, referring to the
TicketCategories entity.
- name: The name or title of the ticket.
- author: The user who created the ticket, referring to the User entity.
- status: The status of the ticket, represented as an integer mapped to TicketStatus.
- priority: The priority level of the ticket, represented as an integer mapped to TicketPriority.
- createdDate: The timestamp when the ticket was created.
- lastModifiedBy: The username of the actor who last modified the ticket.
- lastModifiedDate: The timestamp when the ticket was last modified.
Methods:
- getStatus: Returns the status as an instance of TicketStatus.
- setStatus: Sets the status using an instance of TicketStatus.
- getPriority: Returns the priority as an instance of TicketPriority.
- setPriority: Sets the priority using an instance of TicketPriority.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetPriority(TicketPriority priority) voidsetStatus(TicketStatus status)
-
Constructor Details
-
Ticket
public Ticket()
-
-
Method Details
-
getStatus
-
setStatus
-
getPriority
-
setPriority
-