Hibernate Spring的整合求高手指导快要崩溃了Java codepublic Book selectBook(String ISBN){System.out.p
Hibernate Spring的整合求高手指导快要崩溃了
Java code
public Book selectBook(String ISBN){ System.out.println(ISBN); List list=this.getHibernateTemplate().find("from Book where ISBN=?",ISBN); //报错就是这一行 Book book=null; if(list.size()>0) { book=(Book)list.get(0); } return book; }
/////*******************////
Java code
public interface BookDao { public void addBook(Book book); public void deleteBook(String ISBN); public void updateBook(Book book); public Book selectBook(String ISBN); }
///////////////**************////////
Java code
public interface StudentService {public Student selectStudent(String readerId);}