[nhusers] Re: Hierarchical relationship not saving

2009-02-13 Thread Jerrie Pelser
OK, this was just my lack of knowledge of how to use NHibernate which was shining through. Forgot to call session.Flush(). Everthing now works as expected. On Feb 12, 4:14 pm, Jerrie Pelser wrote: > Still no luck... > > On Feb 12, 3:22 pm, Dario Quintana > wrote: > > >

[nhusers] Re: Hierarchical relationship not saving

2009-02-12 Thread Jerrie Pelser
Still no luck... On Feb 12, 3:22 pm, Dario Quintana wrote: > Jerrie, > Just in case, review with this > infohttp://simoes.org/docs/hibernate-2.1/155.html > > Let me know > > On Thu, Feb 12, 2009 at 11:17 AM, Jerrie Pelser > wrote: > > > > > > >

[nhusers] Re: Hierarchical relationship not saving

2009-02-12 Thread Jerrie Pelser
Dario, I have played around with the inverse setting on element and it does not matter whether I set it to true or false, it still does not work. According to all the sample on the web my scenario should work, but for some or other reason it does not. Jerrie On Feb 12, 3:05 pm, Dario Quintan

[nhusers] Hierarchical relationship not saving

2009-02-12 Thread Jerrie Pelser
ry.Parent = category; session.SaveOrUpdate(childCategory); How do I get the first scenario to work (saving the child categories when saving the parent category)? I am using a SQL Compact database and using the SQL Ce dialect and driver. R