|
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="ECommerceSystem" namespace="ECommerceSystem.Domain">
<class name="OrderShipment" table="ORDERSHIPMENT" >
<composite-id name ="OrderShipmentId" class ="CompositeKey">
<key-property name ="class1Key" column ="PAYMENTAPPROVEDORDERID" type ="long" access="field"></key-property>
<key-property name ="class2Key" column ="SHIPPINGID" type ="long" access="field"></key-property>
</composite-id>
<many-to-one class="PaymentApprovedOrder" name="CurrentPaidOrder" column="PAYMENTAPPROVEDORDERID" insert="false" update="false"></many-to-one>
<many-to-one class="Shipping" name="CurrentShipping" column="SHIPPINGID" insert="false" update="false"></many-to-one>
<list name ="ShipmentItems" table ="SHIPMENTITEMS" cascade="save-update">
<key not-null="true">
<column name ="PAYMENTAPPROVEDORDERID" />
<column name ="SHIPPINGID" />
</key>
<list-index column="POSITION" />
<one-to-many class ="ShipmentItem"/>
</list>
</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.