[nhusers] Re: Hierarchical relationship not saving

2009-02-13 Thread Dario Quintana
If you are using NH 2.x, use everything between Transactions. Cheers On Fri, Feb 13, 2009 at 6:03 AM, Jerrie Pelser wrote: > > 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. -- Da

[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: > > > Jerrie, > > Just in cas

[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: > > > > > > > Dario, > > > I have played around with  the inver

[nhusers] Re: Hierarchical relationship not saving

2009-02-12 Thread Dario Quintana
Jerrie, Just in case, review with this info http://simoes.org/docs/hibernate-2.1/155.html Let me know On Thu, Feb 12, 2009 at 11:17 AM, Jerrie Pelser wrote: > > 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 st

[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] Re: Hierarchical relationship not saving

2009-02-12 Thread Dario Quintana
If have to set "who is the _right_ side of the relationship". See inverse="true|false". On Thu, Feb 12, 2009 at 10:27 AM, Jerrie Pelser wrote: > > Hi, > > I have a table called ActivityCategory which has a hierarchical > relationship. The table is as follows: > > CREATE TABLE ActivityCategory( >