<?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="Mfrs" type="java.lang.String">
            <column length="50" name="Mfrs">
                <comment>制造商</comment>
            </column>
        </property>
        <property generated="never" lazy="false" name="Packing" type="java.lang.Double">
            <column name="Packing" precision="22" scale="3">
                <comment>包装（KG/包）</comment>
            </column>
        </property>
        <property generated="never" lazy="false" name="SafetyStock" type="java.lang.Double">
            <column name="SafetyStock" precision="22" scale="3">
                <comment>安全存量（KG）</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>
        <many-to-one name="UnitId" class="com.jsh.model.po.Unit" lazy="false">
            <column name="UnitId">
                <comment>多单位</comment>
            </column>
        </many-to-one>
        <property generated="never" lazy="false" name="FirstOutUnit" type="java.lang.String">
            <column length="50" name="FirstOutUnit">
                <comment>首选出库单位</comment>
            </column>
        </property>
        <property generated="never" lazy="false" name="FirstInUnit" type="java.lang.String">
            <column length="50" name="FirstInUnit">
                <comment>首选入库单位</comment>
            </column>
        </property>
        <property generated="never" lazy="false" name="PriceStrategy" type="java.lang.String">
            <column length="500" name="PriceStrategy">
                <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>
        <property generated="never" lazy="false" name="Enabled" type="boolean">
            <column length="1" name="Enabled">
                <comment>启用</comment>
            </column>
        </property>
        <property generated="never" lazy="false" name="OtherField1" type="java.lang.String">
            <column length="50" name="OtherField1">
                <comment>自定义1</comment>
            </column>
        </property>
        <property generated="never" lazy="false" name="OtherField2" type="java.lang.String">
            <column length="50" name="OtherField2">
                <comment>自定义2</comment>
            </column>
        </property>
        <property generated="never" lazy="false" name="OtherField3" type="java.lang.String">
            <column length="50" name="OtherField3">
                <comment>自定义3</comment>
            </column>
        </property>
    </class>
</hibernate-mapping>
