|
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly ="ECommerceSystem" namespace ="ECommerceSystem.Domain">
<class name="Shipping" table="SHIPPING">
<id name ="ShippingId" column ="SHIPPINGID" generator ="native" />
<property name="ShippingName" column="SHIPPINGNAME" type="string" />
<property name="ShippingStartDate" column="SHIPPINGSTARTDATE" type="DateTime" />
<property name="ShippingCharges" column="SHIPPINGCHARGES" type="double" />
<property name="PrimaryPaidOrderId" column="PRIMARYPAIDORDERID" type="long" />
<set name="ShipmentsInThisShipping" table="ORDERSHIPMENT" lazy="false">
<key column ="SHIPPINGID" />
<one-to-many class ="OrderShipment"/>
</set>
<joined-subclass name="FastShipping" table="FASTSHIPPING">
<key column="FASTSHIPPINGID"/>
<property name ="TrackingNumber" type ="string" column ="TRACKINGNUMBER" />
<property name ="StartDeliveryLatestBy" type ="DateTime" column ="STARTDELIVERYBY" />
<property name ="DeliveryDate" type ="DateTime" column ="DELIVERYDATE" />
</joined-subclass>
<joined-subclass name="ParcelService" table="PARCELSERVICE">
<key column="PARCELSERVICEID"/>
<property name ="ParcelRegistrationNumber" type ="string" column ="PARCELREGISTRATIONNUMBER" />
<property name ="IsGiftWrapped" type ="bool" column ="ISGIFTWRAPPED" />
</joined-subclass>
</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.