Class SeatReservation

java.lang.Object
de.gustavblass.fsu.fmi.roombooking.model.reservation.Reservation
de.gustavblass.fsu.fmi.roombooking.model.reservation.SeatReservation
All Implemented Interfaces:
Identified, Comparable<Reservation>

@Entity public class SeatReservation extends Reservation
A Reservation for just a subset of all seats available in the Reservation.room, i.e. not for the entire Room.
  • Field Details

  • Constructor Details

    • SeatReservation

      public SeatReservation()
  • Method Details

    • setCount

      public void setCount(@Range(from=1L,to=2147483647L) int count) throws de.gustavblass.commons.exceptions.IllegalArgumentException
      Updates the count.
      Parameters:
      count - The new number of seats. Must be greater than zero.
      Throws:
      de.gustavblass.commons.exceptions.IllegalArgumentException - If the given seat count is less than one.
      Implementation Note:
      The Range annotation is just for documentation and does not actually validate the input.