-->
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: Design Issue with Hibernate 3.1.2 and JDK1.4.2
PostPosted: Mon Jan 30, 2006 6:18 am 
Newbie

Joined: Mon Jan 30, 2006 5:24 am
Posts: 2
[b]Hibernate 3.1.1[/b]

Hi All,

I am Using Weblogic 8.1 portal with hibernate as data access layer. I have a use case where:
1) user will rendered few records (read only) from database based on a criteria.
2) Say criteria matches 1000 records in DB. We are prefetching Primary keys array to calculate pagination scheme to be applied.
3) Now, on each page we will be displaying 25 records and these will be fetched depending upon the current page requested by user (by clicking a numberd link).
4) We are thinking of using "Open session in View" approach. But we cannot used AOP based interceptors as constraint is we cannot use jdk1.5, now we have left with Filters, but Filters will be more error prone interm of performance and managing transactions.

Please suggest appropraite approach for above scenario keeping in mind the constraints we have.

Thanks in Advance
Tushar Agrawal


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 30, 2006 6:22 am 
Expert
Expert

Joined: Tue Nov 23, 2004 7:00 pm
Posts: 570
Location: mostly Frankfurt Germany
I would
select the first 25 from the database
close the session
show them
when the news clicks to the next 25
select the next 25
close the session
show them


Regards Sebastian

_________________
Best Regards
Sebastian
---
Training for Hibernate and Java Persistence
Tutorials for Hibernate, Spring, EJB, JSF...
eBook: Hibernate 3 - DeveloperGuide
Paper book: Hibernate 3 - Das Praxisbuch
http://www.laliluna.de


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.