Thanks. But it's driving me nuts...
I've added on-delete "cascade" and I also have the inverse=true but I
still get as many DELETE as they are items to delete.
In my Post mapping file :
<bag name="Comments" inverse="true" cascade="all-delete-orphan"
lazy="true">
<key column="PostID" on-delete="cascade"/>
<one-to-many class="Metrica.CommentPost, Metrica" />
</bag>
In my Comment mapping file :
<many-to-one name="thePost" class="Metrica.Post, Metrica"
column="PostID" not-null="true" />
Is there something wrong with what I'm doing ?
On 6 avr, 16:21, Fabio Maulo <
fabioma...@gmail.com> wrote:
> on-delete="cascade" (attribute of <key> tag)and/or check the inverse.
>
> 2009/4/6 graphicsxp <
graphic...@googlemail.com>