Class Sale

    • Field Detail

      • id

        private long id
      • date

        private Date date
      • buyerId

        private long buyerId
        This property has been purposely modeled as an ID and not a relationship to show how JPA queries can still functionally associate information without an explicit foreign key
      • store

        private Store store
    • Constructor Detail

      • Sale

        public Sale()
    • Method Detail

      • getId

        public long getId()
      • addClerk

        public Sale addClerk​(Clerk... clerk)
      • getStore

        public Store getStore()
      • setStore

        public Sale setStore​(Store store)
      • getBuyerId

        public long getBuyerId()
      • setBuyerId

        public Sale setBuyerId​(long buyerId)
      • getDate

        public Date getDate()
      • setDate

        public Sale setDate​(Date date)