|
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly ="ECommerceSystem" namespace ="ECommerceSystem.Domain">
<class name="ShoppingCartSelection" table="SHOPPINGCARTSELECTION" >
<composite-id name="ShoppingCartSelectionId" class="CompositeKey">
<key-property column="PRODUCTDESCRIPTIONID" name ="class1Key" access="field" type="long"></key-property>
<key-property column="SHOPPINGCARTID" name ="class2Key" access="field" type="long"></key-property>
</composite-id>
<property name="Quantity" column="QUANTITY" type="int" />
<many-to-one name ="CurrentProduct" column ="PRODUCTDESCRIPTIONID" class="ProductDescription" insert="false" update="false"/>
<many-to-one name="ParentCart" column="SHOPPINGCARTID" class="ShoppingCart" insert="false" update="false"/>
</class>
</hibernate-mapping>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.