i couldn't attach files so i posted them here <?xml version="1.0" encoding="utf-16"?> <hibernate-mapping auto-import="true" default-lazy="false" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http:// www.w3.org/2001/XMLSchema-instance" xmlns="urn:nhibernate- mapping-2.2"> <class name="Veranda.Online.Model.Order, Veranda.Online.Model" table="Orders" dynamic-update="true" dynamic-insert="true" lazy="true"> <id name="Id" access="nosetter.camelcase" column="Id" type="Int32" unsaved-value="0"> <generator class="identity"> </generator> </id> <property name="ShippedDate" access="property" type="System.DateTime, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <column name="ShippedDate"/> </property> <property name="Price" access="property" type="Double"> <column name="Price"/> </property> <property name="PurchasedDate" access="property" type="System.DateTime"> <column name="PurchasedDate"/> </property> <many-to-one name="Buyer" access="property" class="Veranda.Online.Model.User, Veranda.Online.Model" column="Buyer" /> <bag name="Items" access="property" table="OrderItems" lazy="false" inverse="true" cascade="all-delete-orphan"> <key column="[Order]" /> <one-to-many class="Veranda.Online.Model.OrderItem, Veranda.Online.Model" /> </bag> </class> </hibernate-mapping>
<?xml version="1.0" encoding="utf-16"?> <hibernate-mapping auto-import="true" default-lazy="false" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http:// www.w3.org/2001/XMLSchema-instance" xmlns="urn:nhibernate- mapping-2.2"> <class name="Veranda.Online.Model.OrderItem, Veranda.Online.Model" table="OrderItems" dynamic-update="true" dynamic-insert="true" lazy="true"> <id name="Id" access="nosetter.camelcase" column="Id" type="Int32" unsaved-value="0"> <generator class="identity"> </generator> </id> <property name="Price" access="property" type="Double"> <column name="Price"/> </property> <property name="ProductType" access="property"> <column name="ProductType"/> </property> <property name="Quantity" access="property" type="Int32"> <column name="Quantity"/> </property> <any name="Product" access="property" id-type="Int32" meta- type="Int32"> <meta-value value="0" class="Veranda.Online.Model.Color, Veranda.Online.Model" /> <meta-value value="1" class="Veranda.Online.Model.VerandaSize, Veranda.Online.Model" /> <meta-value value="5" class="Veranda.Online.Model.WindScreen, Veranda.Online.Model" /> <meta-value value="2" class="Veranda.Online.Model.RoofPlate, Veranda.Online.Model" /> <meta-value value="3" class="Veranda.Online.Model.Pillar, Veranda.Online.Model" /> <meta-value value="4" class="Veranda.Online.Model.SideFrame, Veranda.Online.Model" /> <column name="ProductType" /> <column name="ProductID" /> </any> <many-to-one name="Order" access="property" class="Veranda.Online.Model.Order, Veranda.Online.Model" column="[Order]" /> </class> </hibernate-mapping> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
