Class ShowTickets


  • @Entity
    public class ShowTickets
    extends Object
    This class provides an example of a the owning entity of a one-to-one, uni-directional relationship where the dependent's primary key is derived from the parent and the parent uses a composite primary key.
    • Field Detail

      • date

        private Date date
      • time

        private Date time
      • ticketsLeft

        private int ticketsLeft
    • Constructor Detail

      • ShowTickets

        public ShowTickets()
      • ShowTickets

        public ShowTickets​(ShowEvent show)
    • Method Detail

      • getDate

        public Date getDate()
      • getTime

        public Date getTime()
      • getTicketsLeft

        public int getTicketsLeft()
      • setTicketsLeft

        public void setTicketsLeft​(int ticketsLeft)