Thanks, fixed.
Very confusing, since subList() is different to substring() in this respect :-(
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4049872#4049872
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4049872
Hi,
I backported the changes to 1.2.1.GA, and there seams to be a small bug.
The truncateResultList should return the nr of max results and not max results
-1.
return results.subList(0, mr-1);
should be
return results.subList(0, mr-1);
Robert
View the original post :
this should of course be
return results.subList(0, mr);
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4047924#4047924
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4047924
___
I implemented this feature (it is something I meant to implement ages ago) in
CVS. My implementation is more efficient ;-)
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4046967#4046967
Reply to the post :
Thanks. Have you reported this to JIRA?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4044345#4044345
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044345
___
jboss-user mailing
Not yet. I'm tested with max-results defined. But I din't test with no
max-result (not paged) defined. And also I'm thinking about to contribute some
improvements, like total pages, current page, and some other minus bugs I
found. When I will have this ok, I will report the errors and suggest
Last night I already created a JIRA issue so just add to it when you are ready.
http://jira.jboss.com/jira/browse/JBSEAM-1306
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4044367#4044367
Reply to the post :
If you are using the query with max-results defined, then you must to extend
the EntityQuery class and override the following methods as follows:
| @Override
| @Transactional
| public long getLastFirstResult() {
|
| long page = (getResultCount() / getMaxResults()) *