That'd be correct, just pull that method that Paul added up into that
interface.

On Wed, Mar 25, 2009 at 6:32 PM, Miha Necak <[email protected]> wrote:

>
> Sensational, thanks a milion, that solved a lot of problems.
>
> I do however have one more question - how difficult would it be to
> make this available within a convention. I have over 70 tables and
> doing this via overrides seems like a huge overkil.
>
> Although I'm not very familiar with nhibernate codebase (or NHibernate
> for that matter), I did some digging and am considering extending
> IOneToManyPart interface that is used within conventions. Am i
> thinking in the right direction?
>
>
> On 25 mar., 08:58, Paul Batum <[email protected]> wrote:
> > Miha,
> >
> > This one was really easy to implement. If you get the latest source you
> > should find you can now call ForeignKeyCascadeOnDelete() on your HasMany
> > mapping.
> >
> > Let me know if it works for you!
> >
> > Paul Batum
> >
> >
> >
> > On Wed, Mar 25, 2009 at 6:46 AM, Miha Necak <[email protected]> wrote:
> >
> > > Thank you very much for a quick reply, but that is not what I am
> > > looking for (at least I don't think so).
> > > The address you provided is a nice resource, but talks about
> > > NHibernate level cascade.
> >
> > > I'm looking for something similar to this
> >
> > > <set name="Permissions" inverse="true" cascade="save-update">
> > >  <key name="Authorization" on-delete="cascade"/>
> > >  <one-to-many class="Permission"/>
> > > </set>
> >
> > > The first cascade is NHibernate level, the second one is database
> > > level.
> > > More information, if you're interested, is available here:
> >
> > >http://vanryswyckjan.blogspot.com/2008/04/nhibernate-20-and-cascading.
> ..
> >
> > > On 24 mar., 20:34, Jon Kruger <[email protected]> wrote:
> > > > This post shows some examples of how you can do it.
> > >http://marekblotny.blogspot.com/2009/02/fluent-nhbernate-and-collecti.
> ..
> >
> > > > On Tue, Mar 24, 2009 at 3:22 PM, Miha Necak <[email protected]>
> wrote:
> >
> > > > > I am trying to find a way to set the "on-delete" = "cascade"
> attribute
> > > > > on key tag that NHibernate enables. The result as I understand
> should
> > > > > also be exportable sql schema geration script with cascades. The
> goal
> > > > > is for the database to handle cascaded deletes.
> >
> > > > > I've tried all the available conventions, but none of them seems to
> be
> > > > > able to provide me what i am trying to achieve. I've even tried
> > > > > SetAttribute("on-delete", "cascade") approach, but no luck there
> > > > > either - I wasn't able the find the appropriate tag to apply it to
> in
> > > > > API.
> >
> > > > > I am probably missing, so i would realy appreciate some pointers.
> >
> > > > > Thanks in advance for any advice.
> > > > > Best regards, Miha
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" 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/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to