Don't know how to generate nHibernate relationship with Sculpture v1


My database is very simple - two tables each with a PK. The child table store the parent table's PK as the FK. It is a simple one to many relationship. When I generate nHibernate, the parent map has a one-to-many relationship but the "Inverse" is set to true. In the child map, there is no many-to-one generated but instead, the parent FK is mapped. As a result, I have to manually set the FK of the child before insert. nHibernate does not persist the relationship between the parent and the child. What have I done wrong?


ANegm wrote Jul 26, 2009 at 3:36 PM

Sorry but the project has been moved
Sculpture 1.0 does not have support any more.

ANegm wrote Jul 26, 2009 at 3:36 PM

wrote Feb 14, 2013 at 2:46 AM