<?xml version="1.0" encoding="UTF-8"?> <hibernate-mapping xmlns="http://www.hibernate.org/xsd/hibernate-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.hibernate.org/xsd/hibernate-mapping http://www.hibernate.org/xsd/hibernate-mapping/hibernate-mapping-4.0.xsd"> <class entity-name="com.xyst.dinas.finance.datamodel.FinanceRefund" table="xyst_dinas_finance_refund" optimistic-lock="version"> <tuplizer entity-mode="dynamic-map" class="com.beecode.bcp.store.hibernate.KObjectEntityTuplizer"/> <id name="id" type="uuid-binary" column="id" length="16"> <generator class="uuid2" /> </id> <version name="version" type="int" column="version"/> <property name="createTime" type="timestamp" not-null="false"> <column name="create_time"></column> </property> <many-to-one name="creator" entity-name="com.beecode.bap.staff.datamodel.Staff" fetch="select"> <column name="creator_id" not-null="false"/> </many-to-one> <property name="modifyTime" type="timestamp" not-null="false"> <column name="modify_time"></column> </property> <many-to-one name="modifier" entity-name="com.beecode.bap.staff.datamodel.Staff" fetch="select"> <column name="modifier_id" not-null="false"/> </many-to-one> <property name="billState" type="nstring" not-null="false"> <column name="bill_state" length="100"></column> </property> <many-to-one name="bizProcess" entity-name="com.beecode.bap.workflow.datamodel.BizProcess" fetch="select"> <column name="biz_process_id" not-null="false"/> </many-to-one> <property name="billCode" type="nstring" not-null="false"> <column name="bill_code" length="200"></column> </property> <property name="discard" type="boolean" not-null="false"> <column name="discard"></column> </property> <property name="del" type="boolean" not-null="false"> <column name="del"></column> </property> <property name="approveState" type="integer" not-null="false"> <column name="approve_state"></column> </property> <many-to-one name="regionalCompany" entity-name="com.xyst.dinas.biz.datamodel.xystOrganization" fetch="select"> <column name="regional_company" not-null="false"></column> </many-to-one> <many-to-one name="purchaseSandCompany" entity-name="com.xyst.dinas.project.datamodel.PurchaseSandCompany" fetch="select"> <column name="purchase_sand_company" not-null="false"></column> </many-to-one> <many-to-one name="contract" entity-name="com.xyst.dinas.contract.datamodel.Contract" fetch="select"> <column name="contract" not-null="false"></column> </many-to-one> <many-to-one name="project" entity-name="com.xyst.dinas.project.datamodel.ProjectFiled" fetch="select"> <column name="project" not-null="false"></column> </many-to-one> <property name="projectName" type="nstring" not-null="false"> <column name="project_name" length="100"></column> </property> <property name="fundType" type="int" not-null="false"> <column name="fund_type" length="10"></column> </property> <property name="applyRefundAmount" type="big_decimal" not-null="false"> <column name="apply_refund_amount" precision="12" scale="2"></column> </property> <property name="payees" type="nstring" not-null="false"> <column name="payees" length="100"></column> </property> <property name="accountBank" type="nstring" not-null="false"> <column name="account_bank" length="100"></column> </property> <property name="account" type="nstring" not-null="false"> <column name="account" length="100"></column> </property> <property name="refundState" type="nstring" not-null="false"> <column name="refund_state" length="100"></column> </property> <property name="refundReason" type="nstring" not-null="false"> <column name="refund_reason" length="300"></column> </property> <property name="applicant" type="nstring" not-null="false"> <column name="applicant" length="100"></column> </property> <property name="applyTime" type="timestamp" not-null="false"> <column name="apply_time"></column> </property> <many-to-one name="acceptor" entity-name="com.beecode.bap.staff.datamodel.Staff" fetch="select"> <column name="acceptor" not-null="false"></column> </many-to-one> <property name="acceptTime" type="timestamp" not-null="false"> <column name="accept_time"></column> </property> <many-to-one name="refunder" entity-name="com.beecode.bap.staff.datamodel.Staff" fetch="select"> <column name="refunder" not-null="false"></column> </many-to-one> <property name="refundTime" type="timestamp" not-null="false"> <column name="refund_time"></column> </property> <property name="actualRefundAmount" type="big_decimal" not-null="false"> <column name="actual_refund_amount" precision="12" scale="2"></column> </property> <property name="refundExplain" type="nstring" not-null="false"> <column name="refund_explain" length="300"></column> </property> <property name="accessory" type="uuid-binary" not-null="false" > <column name="accessory" length="16"></column> </property> </class> </hibernate-mapping>