<?xml version="1.0" encoding="utf-8"?>
<!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.jsh.model.po.Material" table="jsh_material">
        <id name="Id" type="java.lang.Long">
            <column name="Id"/>
            <generator class="native"/>
        </id>
        <many-to-one name="materialCategory" class="com.jsh.model.po.MaterialCategory" lazy="false">
            <column name="CategoryId" />
        </many-to-one>
        <property generated="never" lazy="false" name="Name" type="java.lang.String">
            <column length="50" name="Name">
                <comment>名称</comment>
            </column>
        </property>
        <property generated="never" lazy="false" name="Model" type="java.lang.String">
            <column length="50" name="Model">
                <comment>型号</comment>
            </column>
        </property>
        <property generated="never" lazy="false" name="Standard" type="java.lang.String">
            <column length="50" name="Standard">
                <comment>规格</comment>
            </column>
        </property>
        <property generated="never" lazy="false" name="Color" type="java.lang.String">
            <column length="50" name="Color">
                <comment>颜色</comment>
            </column>
        </property>
        <property generated="never" lazy="false" name="Unit" type="java.lang.String">
            <column length="50" name="Unit">
                <comment>单位</comment>
            </column>
        </property>
        <property generated="never" lazy="false" name="RetailPrice" type="java.lang.Double">
            <column name="RetailPrice" precision="22" scale="3">
                <comment>零售价</comment>
            </column>
        </property>
        <property generated="never" lazy="false" name="LowPrice" type="java.lang.Double">
            <column name="LowPrice" precision="22" scale="3">
                <comment>最低售价</comment>
            </column>
        </property>
        <property generated="never" lazy="false" name="PresetPriceOne" type="java.lang.Double">
            <column name="PresetPriceOne" precision="22" scale="3">
                <comment>预设售价一</comment>
            </column>
        </property>
        <property generated="never" lazy="false" name="PresetPriceTwo" type="java.lang.Double">
            <column name="PresetPriceTwo" precision="22" scale="3">
                <comment>预设售价二</comment>
            </column>
        </property>
        <property generated="never" lazy="false" name="Remark" type="java.lang.String">
            <column length="100" name="Remark">
                <comment>备注</comment>
            </column>
        </property>
    </class>
</hibernate-mapping>
