-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Criteria API for Pagination - Non-Repeatable Read Issue
PostPosted: Sat Feb 04, 2006 4:54 am 
Regular
Regular

Joined: Thu Jul 01, 2004 12:13 am
Posts: 68
Location: San Diego, CA
I have had good success using the Criterion API for pagination, but now I have come to the non-repeatable read issue where if the database is updated frequently while users are viewing paginated results, it will have the undesired effect of updating those results while paging through them.

Is there a way to fix the result set when it was first queried using the criterion API? A couple thoughts I had were to keep a datetime field of when the user first looked at the data and have that as part of my where clause to not get records newer than that.

Another thought was setting a read transaction boundary in the view tier and setting the isolation level to RR.

Does anyone have a best practice for this issue? Note that I am using JSF datatable in the front-end to display the Criteria's List results, so I don't think ScrollableResults will work for me as described in the docs.

Hibernate version 3.1.1.

Thanks,
Lou


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 06, 2006 1:44 pm 
Regular
Regular

Joined: Thu Jul 01, 2004 12:13 am
Posts: 68
Location: San Diego, CA
Is there possibly a way to set the transaction isolation from the view tier declaratively?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.