public Collection<Owner> findByLastName(String lastName) throws DataAccessException {
   List<Owner> owners =
       (List<Owner>)
           hibernateTemplate.find("from Owner o where o.last_name like ?", lastName + "%");
   System.out.println(owners);
   return owners;
 }
 public Course findCourse(int id) {
   List<Object> list = hibernateTemplate.find(" from Course where course_id=?", id);
   return (Course) list.get(0);
 }
 @Transactional
 public Student findStudent(int id) {
   List<Object> list = hibernateTemplate.find(" from Student where student_Id=?", id);
   return (Student) list.get(0);
 }
 @Override
 public Person findPerson(int id) {
   List<Object> list = hibernateTemplate.find(" from Person where id=?", id);
   return (Person) list.get(0);
 }
 public Campus findCampus(int id) {
   List<Object> list = hibernateTemplate.find(" from Campus where id=?", id);
   return (Campus) list.get(0);
 }
 @Override
 public Stock findByStockCode(String stockCode) {
   List list = hibernateTemplate.find("from Stock where stockCode=?", stockCode);
   return (Stock) list.get(0);
 }