Hi I have the following mapping:
<class name="ICategoryItem" abstract="true">
<id name="Id" type="System.Guid">
<generator class="assigned" />
</id>
<union-subclass name="Article">
<property name="Name" not-null="true" />
</union-subclass>
<union-subclass name="Category">
<property name="Name" not-null="true" />
<set name="Items" access="nosetter.camelcase-underscore"
inverse="false" cascade="all-delete-orphan">
<key column="CategoryId" />
<one-to-many class="ICategoryItem" />
</set>
</union-subclass>
</class>
When I tries to save Category with some items inside it it will crash
because NHibernate tries to update inside table ICategoryItem which
does not exist.
[Category.Items#174fe2a0-9e1f-4218-a8b6-0d901886cb37][SQL: UPDATE
ICategoryItem SET CategoryId = @p0 WHERE Id = @p1]
I could let the item do the binding bit I would prefer that article do
not now it's parent.
Have I missed something? Is it a bug?
I can post a test project if needed.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---