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.