Hi, hbm.xml file
<?xml version="1.0" encoding="utf-8"?> <hibernate-mapping namespace="Aon.ATD.Domain.Model" assembly=" Aon.ATD.DomainModel" xmlns="urn:nhibernate-mapping-2.2"> <class name="AccountHandling" table="`Account_Handling`" schema="`dbo`" lazy ="true"> <id name="Ahiid" access="property" column="`AHIId`"> <generator class="native" /> </id> <bag name="AhiTeams" table="`AHI_Routing`" cascade="all"> <key column="`AHIId`" /> <many-to-many class="AhiTeam" column="`TeamId`" /> </bag> <bag name="RequestTypes" table="`AHI_Routing`" cascade="all"> <key column="`AHIId`" /> <many-to-many class="RequestType" column="`RequestTypeId`" /> </bag> </class> </hibernate-mapping> I am trying to save AHI_Routing table with FK assocation of Request Types & Teams. Team & Request Types are dropdowns in application. Can any one help for this many to many assocation saving.. Thanks & Regards, Ayyappa Kolli On Wed, Jun 22, 2011 at 4:54 AM, Kolli Ayyappa <[email protected]>wrote: > Hi, > > Save the data for an association table that acts as an association > table between multiple (more than two) tables. > How we can save those assocation data? ANy help appericated > > Thanks, > Ayyappa Kolli > > -- > 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. > > -- 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.
