[nhusers] Mapping single column from many-to-one to a primitive type

2009-10-26 Thread Andrey Shchekin (ashmind)
Hi all, I have a following mapping: set name=People lazy=true table=ProjectPeople key column=ProjectId / composite-element class=PersonRole many-to-one name=Person column=PersonId cascade=save-update not-null=true / many-to-one name=Role column=RoleId cascade=save-update not-

[nhusers] Re: Kind of a novice question (Session.Save, Session.Flush, Transaction.Commit)

2009-08-24 Thread Andrey Shchekin (ashmind)
Brion ral...@davybrion.com wrote: what's the FlushMode of the session? On Sun, Aug 9, 2009 at 3:43 PM, Andrey Shchekin (ashmind) ashm...@gmail.com wrote: I have a question about the way session.Save works. I have a session, I open a transaction over this session, and then commit

[nhusers] Kind of a novice question (Session.Save, Session.Flush, Transaction.Commit)

2009-08-10 Thread Andrey Shchekin (ashmind)
I have a question about the way session.Save works. I have a session, I open a transaction over this session, and then commit the transaction. There are two different things I am doing within session and transaction: 1. Load an entity and add another entity to one of its collections. This works