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: 'NHibernate.UnresolvableObjectException
PostPosted: Wed Aug 30, 2006 9:45 am 
Newbie

Joined: Wed Aug 16, 2006 2:49 am
Posts: 14
I get a ObjectNotFoundException: No row with the given identifier exists.

Here's my element

<many-to-one name="Category" column="category_identifier" access="property" fetch="join" />

here's my property declaration

private Category category;

public Category Category
{
get { return category; }
set { category = value; }
}

In my understainding, If I use join fetch it will set outer=true and I'll be able to retrieve referenced categories existing or not.

I have no problem if the referenced category id is existing in the category Id. but when the category id is not existing, the above exception occurs.

I thought the fetch = join would solve my problem.

Am I missing something here?
Thanks.


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.