-->
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: Bug in SessionImpl.Load?
PostPosted: Thu Sep 21, 2006 7:50 pm 
Regular
Regular

Joined: Mon Mar 20, 2006 10:49 pm
Posts: 59
Hibernate version: 1.2.0.Alpha1

If SessionImpl.Load is called with a bogus id, no exception is thrown. Instead, an uninitialized proxy is returned. Is this the correct behavior?

Thanks,

Mike
Code:
      public object Load( System.Type clazz, object id )
      {
         CheckIsOpen();

         if( id == null )
         {
            throw new ArgumentNullException( "id", "null is not a valid identifier" );
         }
         object result = DoLoadByClass( clazz, id, true, true );
         ObjectNotFoundException.ThrowIfNull( result, id, clazz );
         return result;
      }

_________________
Mike Abraham


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 22, 2006 12:30 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Yes, it is.


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.