<?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.Supplier" table="jsh_supplier">
        <id name="id" type="java.lang.Long">
            <column name="id" />
            <generator class="native"/>
        </id>
        <property name="supplier" type="java.lang.String">
            <column name="supplier" not-null="true">
                <comment>供应商名称</comment>
            </column>
        </property>
        <property name="type" type="java.lang.String">
            <column name="type" length="20">
                <comment>类型</comment>
            </column>
        </property>
        <property name="contacts" type="java.lang.String">
            <column name="contacts" length="100">
                <comment>联系人</comment>
            </column>
        </property>
        <property name="phonenum" type="java.lang.String">
            <column name="phonenum" length="30">
                <comment>联系电话</comment>
            </column>
        </property>
        <property name="email" type="java.lang.String">
            <column name="email" length="50">
                <comment>电子邮箱</comment>
            </column>
        </property>
        <property generated="never" lazy="false" name="BeginNeedGet" type="java.lang.Double">
            <column name="BeginNeedGet" precision="22" scale="3">
                <comment>期初应收</comment>
            </column>
        </property>
        <property generated="never" lazy="false" name="BeginNeedPay" type="java.lang.Double">
            <column name="BeginNeedPay" precision="22" scale="3">
                <comment>期初应付</comment>
            </column>
        </property>
        <property generated="never" lazy="false" name="AllNeedGet" type="java.lang.Double">
            <column name="AllNeedGet" precision="22" scale="3">
                <comment>累计应收</comment>
            </column>
        </property>
        <property generated="never" lazy="false" name="AllNeedPay" type="java.lang.Double">
            <column name="AllNeedPay" precision="22" scale="3">
                <comment>累计应付</comment>
            </column>
        </property>
        <property name="description" type="java.lang.String">
            <column name="description" length="500" />
        </property>
        <property name="isystem" type="java.lang.Short">
            <column name="isystem" not-null="true">
                <comment>是否系统自带 0==系统 1==非系统</comment>
            </column>
        </property>
       <property generated="never" lazy="false" name="enabled" type="boolean">
         <column length="1" name="enabled">
          <comment>启用</comment>
         </column>
       </property>
    </class>
</hibernate-mapping>
