<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
    <class name="com.lzw.model.VOrderDetail" table="V_order_detail" schema="dbo" catalog="db_shop">
        <composite-id name="id" class="com.lzw.model.VOrderDetailId">
            <key-property name="orderId" type="long">
                <column name="orderID" />
            </key-property>
            <key-property name="goodsId" type="string">
                <column name="goodsID" length="20" />
            </key-property>
            <key-property name="goodsName" type="string">
                <column name="GoodsName" length="200" />
            </key-property>
            <key-property name="price" type="double">
                <column name="price" scale="4" />
            </key-property>
            <key-property name="number" type="integer">
                <column name="number" />
            </key-property>
        </composite-id>
    </class>
</hibernate-mapping>
