-->
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: Understanding The Load Method
PostPosted: Tue Oct 18, 2005 2:13 pm 
Newbie

Joined: Tue Oct 11, 2005 1:52 pm
Posts: 2
I'm prety new to NHibernate so forgive me if the question is stupid ;)
I dont understand the behavior of the session object -
Why cant I load an object more than once?
I'll explain - I'm using the session.Load(object,id) overload of the Load method do get the object with the corresponding ID from the DataBase,
The second time I'm trying to load the object, I get an NonUniqueObjectException - why???
I understand that the NHibernate caches my loaded objects in an internal cache, so why doesnt the session lets me access this stored objects once more?
Thanks for any help and sorry if the question is dumb ;)

-- Ram


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.