Files
jshERP/WebRoot/WEB-INF/classes/com/jsh/model/po/DepotHead.hbm.xml

82 lines
3.0 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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.DepotHead" table="jsh_depothead">
<id name="Id" type="java.lang.Long">
<column name="Id"/>
<generator class="native"/>
</id>
<property generated="never" lazy="false" name="Type" type="java.lang.String">
<column length="50" name="Type">
<comment>类型(出库/入库)</comment>
</column>
</property>
<property generated="never" lazy="false" name="SubType" type="java.lang.String">
<column length="50" name="SubType">
<comment>出入库分类</comment>
</column>
</property>
<many-to-one name="ProjectId" class="com.jsh.model.po.Depot" lazy="false">
<column name="ProjectId" not-null="true">
<comment>项目Id</comment>
</column>
</many-to-one>
<property generated="never" lazy="false" name="Number" type="java.lang.String">
<column length="50" name="Number">
<comment>票据号</comment>
</column>
</property>
<property generated="never" lazy="false" name="OperPersonName" type="java.lang.String">
<column length="50" name="OperPersonName">
<comment>操作员名字</comment>
</column>
</property>
<property name="CreateTime" type="java.sql.Timestamp">
<column length="19" name="CreateTime">
<comment>创建时间</comment>
</column>
</property>
<property name="OperTime" type="java.sql.Timestamp">
<column length="19" name="OperTime">
<comment>出入库时间</comment>
</column>
</property>
<many-to-one name="OrganId" class="com.jsh.model.po.Supplier" lazy="false">
<column name="OrganId">
<comment>供应商Id</comment>
</column>
</many-to-one>
<many-to-one name="HandsPersonId" class="com.jsh.model.po.Person" lazy="false">
<column name="HandsPersonId">
<comment>经手人Id</comment>
</column>
</many-to-one>
<many-to-one name="AccountId" class="com.jsh.model.po.Account" lazy="false">
<column name="AccountId">
<comment>账户Id</comment>
</column>
</many-to-one>
<property generated="never" lazy="false" name="ChangeAmount" type="java.lang.Double">
<column name="ChangeAmount" precision="22" scale="3">
<comment>变动金额(收款/付款)</comment>
</column>
</property>
<many-to-one name="AllocationProjectId" class="com.jsh.model.po.Depot" lazy="false">
<column name="AllocationProjectId">
<comment>调拨时对方项目Id</comment>
</column>
</many-to-one>
<property generated="never" lazy="false" name="TotalPrice" type="java.lang.Double">
<column name="TotalPrice" precision="22" scale="3">
<comment>合计金额</comment>
</column>
</property>
<property generated="never" lazy="false" name="Remark" type="java.lang.String">
<column length="1000" name="Remark">
<comment>备注</comment>
</column>
</property>
</class>
</hibernate-mapping>