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.  [ 3 posts ] 
Author Message
 Post subject: Is it possible to work in offline\disconnect mode
PostPosted: Tue Aug 01, 2006 3:42 am 
Newbie

Joined: Tue Aug 01, 2006 3:03 am
Posts: 1
Hi ,
I need to know if it's possible to work with objects that are disconnected from the database. And if there any tool on top of Nhibernate that you recommend that also support it. ActiveRecord (Castle) don't support it.
Thanks in advance



[b]Hibernate version: 1.2.0.1001[/b]


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 01, 2006 5:28 am 
Senior
Senior

Joined: Wed Jun 15, 2005 4:17 am
Posts: 156
It is possible but in this case you can't use lazy loading so you have to load all your object graph in memory which can impact performance. As for tools on top of NHibernate I don't have a clue.

Cheers,
Radu


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 01, 2006 8:56 pm 
Beginner
Beginner

Joined: Mon Nov 21, 2005 6:38 pm
Posts: 30
Location: New Zealand
Radu is correct about not being able to use lazy loading.

We have an app that accesses the database via a webservice where NHibernate only runs on the server. We have been able to reduce the amount of data sent by disconnecting objects from their parents and then reconnecting them back up after persistence.

It's a bit painful, but it can help when your object model is large.


This recent thread may help you as well http://forum.hibernate.org/viewtopic.php?t=962737


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.