-->
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: RCP applications
PostPosted: Thu Oct 20, 2005 8:19 am 
Newbie

Joined: Tue Aug 02, 2005 3:53 am
Posts: 1
Hi there,
Does anyone know how can I use Hibernate with RCP applications using the lazy load. This is because I do not want to load the whole DB into my app. I have seen models to use it with Web applications but nothing on RCP.
Just to clear up; I am writing Eclipse RCP app and have Hibernate working, but I had to set the lazy load to false, because I was getting an error of session being close etc. After setting lazy load to false it works but the app is loading all object from DB, and that is something I want to avoid.

One idea would be to open a session and keep it open till the application closes. Although I have not try it yet!

Hope one of you can help me,

thanks
rp


Top
 Profile  
 
 Post subject: Re: RCP applications
PostPosted: Thu Oct 20, 2005 9:14 am 
Expert
Expert

Joined: Mon Feb 14, 2005 12:32 pm
Posts: 609
Location: Atlanta, GA - USA
sonofseven wrote:
Hi there,
Does anyone know how can I use Hibernate with RCP applications using the lazy load. This is because I do not want to load the whole DB into my app. I have seen models to use it with Web applications but nothing on RCP.
Just to clear up; I am writing Eclipse RCP app and have Hibernate working, but I had to set the lazy load to false, because I was getting an error of session being close etc. After setting lazy load to false it works but the app is loading all object from DB, and that is something I want to avoid.

One idea would be to open a session and keep it open till the application closes. Although I have not try it yet!

Hope one of you can help me,

thanks
rp


http://www.hibernate.org/333.html

_________________
Preston

Please don't forget to give credit if/when you get helpful information.


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.