Client Side sorting + Hibernate Paging?

前端 未结 3 1570
庸人自扰
庸人自扰 2020-12-10 09:26

I use GWT for UI and Hibernate/Spring for buisness-layer.Following GWT widget is used to display the records.(http://collectionofdemos.appspot.com/demo/com.google.gwt.gen2.d

3条回答
  •  醉梦人生
    2020-12-10 09:36

    It will be confusing to the user if you sort on a partial result in the GUI, and page on the server.

    Since the data set is huge, sending the entire data set to the user and do both paging and sorting there is a no-go.

    That only leaves both sorting and paging on the server. You can use Criteria.addOrder() to do sorting in hibernate. See this tutorial.

提交回复
热议问题