Permalink
Browse files

countAll return Long

  • Loading branch information...
nk
nk committed Feb 17, 2012
1 parent 687b9f1 commit 1f25572f61f2231091f693bc53bfa7aa352cb850
@@ -31,7 +31,7 @@ public String list(Integer page, Integer size, Model model, HttpServletRequest r
int sizeNo = size == null ? 50 : size.intValue();
int pageNo = page == null ? 0 : (page.intValue());
int offset = pageNo * sizeNo;
- Integer itemNo = dao.countAll(entityClass);
+ Long itemNo = dao.countAll(entityClass);
Pager pager = new Pager(request.getRequestURI(), itemNo.longValue(), Integer.valueOf(pageNo).longValue(), sizeNo);
model.addAttribute("itemNo", itemNo);
model.addAttribute("sizeNo", sizeNo);
@@ -17,7 +17,7 @@
public void merge(E entity);
- public Integer countAll(Class<? extends SystemEntity> entity);
+ public Long countAll(Class<? extends SystemEntity> entity);
public List<E> listAll(Class<? extends SystemEntity> entity, int maxNo, int offset);

0 comments on commit 1f25572

Please sign in to comment.