Hello,
I have this relation :
<bag name="EstimationItems" generic="true" cascade="all"
inverse="false" table="EstimationItems" >
<key column="Estimation" />
<many-to-many column="EstimationItem" class="EstimationItem" />
</bag>
1. When I add some "EstimationItem" (2 for example) to "Estimation"
and I do a SaveOrUpdate no problem
2. When I add one more "EstimationItem" and I do a SaveOrUpdate ...
in the database I have 5 records in the "EstimationItem", the number
of record in "EstimationItems" is correct
3. I have the same problem when I remove. After the point when If I
remove one element, the number of record in "EstimationItems" is
correct but there are still 2 records in "EstimationItem".
I tried to use set instead of bag without change the code, when I do
this I got this error :
Invalid Cast (check your mapping for property type mismatches); setter
of MyProjectName
Any idea?
Thanks,
--
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.