Class Borrower


  • @Entity
    public class Borrower
    extends Object
    This class forms a uni-directional, one-to-one relationship with the Person class, joined by common primary keys. There is not additional column necessary to store the foreign key. Note too that this object fully encapsulates the relationship by never handing over the Person; only using it to derive values. All concenience getters are declared Transient.
    • Field Detail

      • log

        private static org.slf4j.Logger log
      • id

        private long id
      • startDate

        private Date startDate
      • endDate

        private Date endDate
      • identity

        private Person identity
    • Constructor Detail

      • Borrower

        protected Borrower()
      • Borrower

        public Borrower​(Person identity)
    • Method Detail

      • getId

        public long getId()
      • getEndDate

        public Date getEndDate()
      • setEndDate

        public void setEndDate​(Date end)
      • getStartDate

        public Date getStartDate()
      • setStartDate

        public void setStartDate​(Date start)
      • getName

        public String getName()
        This method returns the concatenated first/last names of the Borrower's person. Note that we need to declare this field Transient so that the provider doesn't try to map this to a column in the Borrower table as well as look for a setName.
      • getApplication

        public Applicant getApplication()
      • setApplication

        public void setApplication​(Applicant application)
      • addCheckout

        public void addCheckout​(Checkout checkout)
      • removeCheckout

        public void removeCheckout​(Checkout checkout)
      • myInstance

        private String myInstance()