Class Borrower


  • @Entity
    public class Borrower
    extends Object
    This class provides an example of the one/parent side of a one-to-many, bi-directional relationship that will be realized through a foreign key from the many/child side of the relationship. Being the one side of the one-to-many relationship, this class must implement the inverse side.
    • Field Detail

      • id

        private int id
    • Constructor Detail

      • Borrower

        public Borrower()
    • Method Detail

      • getId

        public int getId()
      • getLoans

        public List<Loan> getLoans()
      • setLoans

        public void setLoans​(List<Loan> loans)
      • getName

        public String getName()
      • setName

        public void setName​(String name)