文章列表
@SuppressWarnings("unchecked")
public String execute() throws Exception {
int startIndex = (page - 1) * rp; // 计算查询开始数据下标
total = uManger.pageTotalCount();
List list = uManger.queryuserList(rp, startIndex);
for (Iterator iterator = list.iterator(); iterator.hasNext();) {
u ...
- 2009-12-04 13:56
- 浏览 879
- 评论(0)
用Hibernate给MYSQL分页的“真”与“假”,不知道这是真与假,以前我用JDBC
分页用到limit.
有那位大哥可以告诉我一下,谢谢!
public List pageQuery(int pageSize, int pageNow) {
Session session = null;
List list = new ArrayList();
try {
session = HibernateSessionFactory.getSession();
session.beginTransacti ...
- 2009-11-27 14:45
- 浏览 1177
- 评论(0)