Class Loan


  • @Entity
    public class Loan
    extends Object
    This class provides an example of the many/child side of a many-to-one, bi-directional relationship. Being the many side of the many-to-one relationship, this class must implementing the owning side.
    • Field Detail

      • id

        private int id
      • checkout

        private Date checkout
      • checkin

        private Date checkin
    • Constructor Detail

      • Loan

        public Loan()
      • Loan

        public Loan​(Borrower borrower)
    • Method Detail

      • getId

        public int getId()
      • isOut

        public boolean isOut()
      • getBorrower

        public Borrower getBorrower()
      • setBorrower

        public void setBorrower​(Borrower borrower)
      • getCheckout

        public Date getCheckout()
      • setCheckout

        public void setCheckout​(Date checkout)
      • getCheckin

        public Date getCheckin()
      • setCheckin

        public void setCheckin​(Date checkin)