摘要:
1, a)使用hql语句直接查询整个model,取值时候需要向下转型: List list= session.createQuery("select s from Student s where s.name like ?").setParameter(0, "%"+param+"%").list(); for(Iterator it = list.iterator();it.hasNext();) { Student s = (Student)it.next();System.out.println(s.getName()); } 阅读全文
摘要:
today,IFailed to load or instantiate TagLibraryValidator class - JstlCoreTLVjava.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/ConditionalTagSupport 阅读全文
摘要:
1,First of all, we should have a wrapper class for page,this class can calculate the startRow by the number of result,pageSize,and currentPage.public class Pager extends BaseBO { private static final int DEFAULT_PAGE_SIZE = 10; private int totalRows; private int pageSize = 10; private in... 阅读全文