-->
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.  [ 1 post ] 
Author Message
 Post subject: NotExisting Objects
PostPosted: Tue Dec 04, 2007 5:33 pm 
Beginner
Beginner

Joined: Tue Dec 04, 2007 4:48 pm
Posts: 21
Hi,

I'm using NHibernate 1.2 GA in my latest app, and so far I'm thrilled. I'm using the lazy load technique of NHibernate to minimize requests to my DB, however when I try to fetch something from the DB that doesn't really exists that's a bummer.

Right now I'm using the Load method, in order to achive lazy loading. So testing for null doesn't help, since the object is being initialized with a proxy-object in thus is not null.

Is there any way to determine whether an object exists or not?


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

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.