You have two properties mapped to the same column.Use insert=false and update=false in one of the two. Bye. Fabio Maulo.
P.S. Your mapping is a classic example of how DON'T map a class. Try to set lazy=false and see what happen, and think when you need all thats collections together... you are delegating some work of your BusinessLayer to the DAL (NH). 2008/9/30 Ramon Smits <[EMAIL PROTECTED]> > > > mappings please. > > <?xml version="1.0" encoding="utf-8" ?> > <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" > assembly="Dal" > namespace="Dal"> > > <class name="yyy"> > <id name="Id"> > <generator class="native"/> > </id> > <property name="Customer_Id" /> > <property name="Name" /> > <property name="Status_id" /> > <property name="StartDateTime" /> > <property name="Type_Id" /> > <property name="Skin" /> > <property name="Start" /> > <property name="End" /> > <property name="StatsEnabled" /> > <property name="Title" /> > <property name="Creator" /> > <property name="CustomerUrl" /> > <property name="Process_Status" /> > > <bag name="AAAs" table="yyy_AAA"> > <key column="yyy_Id"/> > <many-to-many class="AAA" column="AAA_Id"/> > </bag> > > <bag name="BBBs" table="yyy_BBB"> > <key column="yyy_Id"/> > <many-to-many class="BBB" column="BBB_Id"/> > </bag> > > <bag name="CCCs" table="yyy_CCC"> > <key column="yyy_Id"/> > <many-to-many class="CCC" column="CCC_Id"/> > </bag> > > <bag name="DDD"> > <key column="yyy_Id"/> > <one-to-many class="DDD"/> > </bag> > > <bag name="EEE"> > <key column="yyy_Id" /> > <one-to-many class="EEE"/> > </bag> > > <bag name="FFF"> > <key column="yyy_Id" /> > <one-to-many class="FFF"/> > </bag> > > <bag name="GGG"> > <key column="yyy_Id" /> > <one-to-many class="GGG"/> > </bag> > > <bag name="HHH"> > <key column="yyy_Id" /> > <one-to-many class="HHH"/> > </bag> > > <bag name="III"> > <key column="yyy_Id"/> > <one-to-many class="III"/> > </bag> > > <bag name="JJJ"> > <key column="yyy_Id"/> > <one-to-many class="JJJ"/> > </bag> > > <bag name="KKK"> > <key column="yyy_Id"/> > <one-to-many class="KKK"/> > </bag> > > <bag name="LLL"> > <key column="yyy_Id"/> > <one-to-many class="LLL"/> > </bag> > > <bag name="MMM"> > <key column="yyy_Id"/> > <one-to-many class="MMM"/> > </bag> > > <bag name="NNN"> > <key column="yyy_Id"/> > <one-to-many class="NNN"/> > </bag> > > <bag name="OOO"> > <key column="yyy_Id"/> > <one-to-many class="OOO"/> > </bag> > > <many-to-one name="Customer" class="Customer" > column="Customer_Id" /> > > </class> > </hibernate-mapping> > > > I have anonymized the entities a bit but only the names are replaced. > The structure is the same. > > > -- Fabio Maulo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
