-
Notifications
You must be signed in to change notification settings - Fork 934
Fix properties mapped inside a <properties> group are empty when retrieving object #2142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
//useParent = parent != null && base.ReturnedClass.IsInstanceOfType(parent); | ||
var useParent = | ||
parent != null && | ||
//TODO: Yuck! This is not quite good enough, it's a quick |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -19,9 +19,12 @@ public override bool IsEmbedded | |||
|
|||
public override object Instantiate(object parent, ISessionImplementor session) | |||
{ | |||
bool useParent= false; | |||
// NH Different implementation : since we are not sure about why H3.2 use the "parent" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, now we're sure why this code was written like this...
This comment has been minimized.
This comment has been minimized.
Thanks @lillo42 |
I just spent a day debugging this issue on 4.0.4.GA only to find that this bug was reported over 8 years ago and was the result of changes made to NHibernate while porting code from Hibernate. Bug fixes like these ought to be back-ported/committed to earlier versions when possible, especially when the H3.2 code on which this fix is based was written 12 years ago. |
Fixes #1006