473,396 Members | 1,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

NHibernate And Many-To-One Mapping

Hey,
I'm using NHibernate version: 1.0.0.2

My Mapping documents:

<class name="DM.Book" table="Books">
<id column="bookId" name="bookId">
<generator class="assigned" />
</id>
<property column="name" name="name" />
<many-to-one name="Author" class="DM.Author" column="authorId"
fetch="join" outer-join="true" not-null="false" />
</class>

Even though I configured the many-to-one to use outer-join,
When I try to - session.Load a book with an author that I deleted,
I get the following error:
ObjectNotFoundException - No Row With The Given Idetifier Exists...

Am I configuring the outer-join incorrectly?

Thanks ahead

sternr

Jul 5 '06 #1
1 12708

sternr wrote:
Hey,
I'm using NHibernate version: 1.0.0.2
First of all, you might have better luck asking this question in the
NHibernate forums:

http://forum.hibernate.org/viewforum...d919f96bd0e389

or

http://tinyurl.com/p7tft
My Mapping documents:

<class name="DM.Book" table="Books">
<id column="bookId" name="bookId">
<generator class="assigned" />
</id>
<property column="name" name="name" />
<many-to-one name="Author" class="DM.Author" column="authorId"
fetch="join" outer-join="true" not-null="false" />
</class>
The mapping itself looks ok as far as I can see, though I recommend
using fully qualified assembly names in the mapping. Does the id of the
book itself exist?

--
Willem van Rumpt
Jul 5 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Joshua Mann | last post by:
I have created a windows service which runs the FileSystemWatcher component. If the service is running and monitoring a directory (ex. "c:\temp") during heavy folder access the service generates...
12
by: code_wrong | last post by:
Hi, as the subject says How many browsers must we support? How many are there exactly? When I run this JavaScript in Firefox and IE6: function init(){ if(document.getElementById) alert("W3C...
0
by: Nishanthan | last post by:
Hi, Is Anybody used nHibernate for your projects? Thanks, P.Nishanthan
6
by: Franco Figún | last post by:
Hello people How many namespace references exits in asp.net 1.0 and 1.1? Thanks -- FF www.francofigun.com.ar www.microsofties.com.ar MSN: francofigun@hotmail.com ICQ: 305336919
14
by: David Garamond | last post by:
begin; update t set val=val+1; -- 1000 times commit; How many record versions does it create? 1 or 1000? I'm implementing a banner counter which is incremented at least 2-3 millions a day. I...
3
by: Showjumper | last post by:
I am working on a CF 2.0 PPC app that utilizes a treview control. Depeding on what node is clicked, a user control is loaded and displayed. I am loading the user control using a select case. So...
1
by: Hoffmania | last post by:
Is there a good tutorial of getting databinding working with NHibernate collections such as bags with lazy loading. I can access the collection programaticly, but not directly with databinding.
1
by: rnpaguia | last post by:
I need help, I'm compiling my previous Program in clipper 5.2 and i add many procedures and function on my prgs. Too many segments display error on my screen! what should I do?
1
by: Alexander Vasilevsky | last post by:
Does the number NHibernate download data? For example, first can be downloaded 100 rows of data, and then as necessary podgruzhat else. Where can I read about NHibernate and its potential? ...
2
by: belred | last post by:
i just read this blog about how many objects (types) are loaded for a hello world program in C#. http://blogs.msdn.com/abhinaba/archive/2008/09/15/how-many-types-are-loaded-for-hello-world.aspx ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.