Class Ticket

java.lang.Object
com.esprit.models.films.Ticket

@Entity public class Ticket extends Object
The Ticket class represents a ticket for a movie session.
  • Field Details

    • id

      private Long id
    • numberOfSeats

      private int numberOfSeats
    • client

      private Client client
    • movieSession

      private MovieSession movieSession
    • price

      private float price
    • reservedSeats

      private List<Seat> reservedSeats
  • Constructor Details

    • Ticket

      public Ticket(int numberOfSeats, Client client, MovieSession movieSession, float price)
      Constructor without id for creating new ticket instances.
      Parameters:
      numberOfSeats - The number of seats for the ticket.
      client - The client associated with the ticket.
      movieSession - The movie session associated with the ticket.
      price - The price of the ticket.