We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 855e16a commit 21c998cCopy full SHA for 21c998c
src/NHibernate/Type/EmbeddedComponentType.cs
@@ -19,9 +19,12 @@ public override bool IsEmbedded
19
20
public override object Instantiate(object parent, ISessionImplementor session)
21
{
22
- bool useParent= false;
23
- // NH Different implementation : since we are not sure about why H3.2 use the "parent"
24
- //useParent = parent != null && base.ReturnedClass.IsInstanceOfType(parent);
+ var useParent =
+ parent != null &&
+ //TODO: Yuck! This is not quite good enough, it's a quick
25
+ //hack around the problem of having a to-one association
26
+ //that refers to an embedded component:
27
+ ReturnedClass.IsInstanceOfType(parent);
28
29
return useParent ? parent : base.Instantiate(parent, session);
30
}
0 commit comments