Hi

Just wanted to add in some extra information incase it makes this
easier to help with. Also I perhaps should mention Im using nhibernate
3

If I change the not-null properties to false the inserts works fine-
<many-to-one name="Account" column="AccountId" not-null="true"
unique="true" cascade="all-delete-orphan" />
to
<many-to-one name="Account" column="AccountId" not-null="false"
unique="true" cascade="all-delete-orphan" />

and
<many-to-one name="User" column="UserId" not-null="true"
unique="true" />
to
<many-to-one name="User" column="UserId" not-null="false"
unique="true" />

However I dont really want to do this as I don't think its correct,
and it then causes an issue where nhibernate no longer is able to
build the database because it cant set a primary key on UsersAccounts
table

Thanks in advance for any advice

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en.

Reply via email to