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.  [ 3 posts ] 
Author Message
 Post subject: one-to-one problem in NHibernate 2.0
PostPosted: Sun Sep 07, 2008 11:45 am 
Newbie

Joined: Tue Apr 01, 2008 7:42 am
Posts: 2
Has anybody experianced problems with one-to-one mapping in NHibernate 2.0?

I'm using many-to-one <-> one-to-one mapping but I can't seem to get the one-to-one object to load its value from the database (the property containing the data from the database is always null).

Could this be a bug in the version 2.0 or is it just a bug in my brain? I saw there has been a one-to-one mapping bug in past 2.0 releases when using lazy loading but I have tried with and without lazy loading.

If someone knows anything about this please let me know. I'd be happy to add my mappings and code here if anybody is interested.

Thanks!

/Ingemar


Top
 Profile  
 
 Post subject: Potnetial patch for this issue
PostPosted: Sat Nov 22, 2008 8:11 pm 
Newbie

Joined: Tue Nov 04, 2008 6:15 pm
Posts: 1
I'm not sure if you are experiencing the problem for the exact same reason I was but I ran into a the same issue. I created an issue in jira and attached a patch here --> http://jira.nhibernate.org/browse/NH-1584.


Top
 Profile  
 
 Post subject: Re: one-to-one problem in NHibernate 2.0
PostPosted: Mon Nov 24, 2008 1:00 pm 
Newbie

Joined: Fri May 25, 2007 5:06 am
Posts: 11
ingo_77 wrote:
Has anybody experianced problems with one-to-one mapping in NHibernate 2.0?

I'm using many-to-one <-> one-to-one mapping but I can't seem to get the one-to-one object to load its value from the database (the property containing the data from the database is always null).

Could this be a bug in the version 2.0 or is it just a bug in my brain? I saw there has been a one-to-one mapping bug in past 2.0 releases when using lazy loading but I have tried with and without lazy loading.

If someone knows anything about this please let me know. I'd be happy to add my mappings and code here if anybody is interested.

Thanks!

/Ingemar


Can you post your HBM file? We're using one-to-one mapping without problems on NHibernate 2.0.

_________________
Regards,
Thomas

NConstruct - NHibernate code generation tool


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.