Class BoxOffice


  • @Entity
    public class BoxOffice
    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, the parent uses a composite primary key, and the dependent used an @EmeddedId and @MapsId.
    • Constructor Detail

      • BoxOffice

        protected BoxOffice()
      • BoxOffice

        public BoxOffice​(ShowEvent show)
    • Method Detail

      • getDate

        public Date getDate()
      • getTime

        public Date getTime()
      • getTicketsLeft

        public int getTicketsLeft()
      • setTicketsLeft

        public void setTicketsLeft​(int ticketsLeft)