<?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.statistics.datamodel.AdvancePaymentAndBalanceSummary" table="xyst_dinas_statistics_advancepayment_Balance_summary" 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="assigned" />
	</id>
	<many-to-one name="project" entity-name="com.xyst.dinas.project.datamodel.ProjectFiled" fetch="select">
		<column name="project_id" not-null="false"/>
	</many-to-one>
	<many-to-one name="regionalCompany" entity-name="com.xyst.dinas.biz.datamodel.xystOrganization" fetch="select">
		<column name="regional_company_id" not-null="false"/>
	</many-to-one>
	<many-to-one name="purchaseSandUnit" entity-name="com.xyst.dinas.project.datamodel.PurchaseSandCompany" fetch="select">
		<column name="purchase_sand_unit_id" not-null="false"/>
	</many-to-one>
	<property name="lastYearAdvance" type="big_decimal" not-null="false">
		<column name="last_year_advance" precision="12" scale="4"/>
	</property>
	<property name="paymentSales" type="big_decimal" not-null="false">
		<column name="payment_sales" precision="12" scale="4"/>
	</property>
	<property name="totalAdvancePayment" type="big_decimal" not-null="false">
		<column name="total_advance_payment" precision="12" scale="4"/>
	</property>
	<property name="advancePaymentRefundAmount" type="big_decimal" not-null="false">
		<column name="advance_payment_refund_amount" precision="12" scale="4"/>
	</property>
	<property name="advanceBalance" type="big_decimal" not-null="false">
		<column name="advance_balance" precision="12" scale="4"/>
	</property>
	<property name="dealTime" type="timestamp" not-null="false">
		<column name="deal_time"/>
	</property>
	<property name="dealYear" type="integer" not-null="false">
		<column name="deal_year"/>
	</property>
	<property name="dealMonth" type="integer" not-null="false">
		<column name="deal_month"/>
	</property>
	<property name="dealDay" type="integer" not-null="false">
			<column name="deal_day"></column>
	</property>
	<property name="totalMargin" type="big_decimal" not-null="false">
		<column name="total_margin" precision="12" scale="4"/>
	</property>
	<property name="marginRefund" type="big_decimal" not-null="false">
		<column name="margin_refund" precision="12" scale="4"/>
	</property>
  </class>
</hibernate-mapping>