-->
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: Loading Progress
PostPosted: Thu Mar 23, 2006 4:52 am 
Newbie

Joined: Fri Feb 24, 2006 5:38 am
Posts: 11
I am wondering if there is a way of retreiving some progress indication when loading objects with lot of relations.
I buildt an application with a typical login-window, where I load the user-object from the database. Problem is that the user-object has a lot of relations, which slows down the time to login, and I can not use lazy-loading.
Now it would be ok if I could show to the user what is going on...

In the server application I have the following code:
Code:
session = sessions.OpenSession();
CotUser u = (CotUser) session.CreateCriteria(typeof(CotUser)).Add(Expression.Eq("Username", username)).List()[0];
session.Close();

Its obvious that the second row does all the work and takes all the time, but is there any way I could get some respons from NHibernate what objects are being loaded and so on?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 23, 2006 10:33 am 
Newbie

Joined: Fri Feb 24, 2006 5:38 am
Posts: 11
ok, I solved the problem using IInterceptor.
Is there any detailed documentation about using IInterceptor or ILifecycle?


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.