<?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.TbOrder" table="tb_order" schema="dbo" catalog="db_shop">
        <id name="orderId" type="java.lang.Long">
            <column name="OrderID" />
            <generator class="identity" />
        </id>
        <property name="bnumber" type="java.lang.Short">
            <column name="bnumber" not-null="true" />
        </property>
        <property name="username" type="java.lang.String">
            <column name="username" length="15" not-null="true" />
        </property>
        <property name="truename" type="java.lang.String">
            <column name="Truename" length="15" not-null="true" />
        </property>
        <property name="address" type="java.lang.String">
            <column name="address" length="100" not-null="true" />
        </property>
        <property name="postcode" type="java.lang.String">
            <column name="postcode" length="10" not-null="true" />
        </property>
        <property name="tel" type="java.lang.String">
            <column name="tel" length="20" not-null="true" />
        </property>
        <property name="pay" type="java.lang.String">
            <column name="pay" length="20" not-null="true" />
        </property>
        <property name="carry" type="java.lang.String">
            <column name="carry" length="20" not-null="true" />
        </property>
        <property name="rebate" type="java.lang.Float">
            <column name="rebate" precision="53" scale="0" not-null="true" />
        </property>
        <property name="orderDate" type="java.util.Date">
            <column name="OrderDate" length="16" not-null="true" />
        </property>
        <property name="enforce" type="java.lang.Integer">
            <column name="enforce" />
        </property>
        <property name="bz" type="java.lang.String">
            <column name="bz" length="200" />
        </property>
        <set name="tbOrderDetails" inverse="true" cascade="save-update" lazy="false">
            <key>
                <column name="orderID" not-null="true" />
            </key>
            <one-to-many class="com.lzw.model.TbOrderDetail" />
        </set>
    </class>
</hibernate-mapping>
