SalesSummary.hbm.xml 2.26 KB
Newer Older
wukaiqiang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
<?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.SalesSummary" table="xyst_dinas_statistics_sale_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="uuid2" />
        </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="purchaseSandUnit" entity-name="com.xyst.dinas.project.datamodel.PurchaseSandCompany" fetch="select">
            <column name="purchase_sand_unit_id"  not-null="false"/>
        </many-to-one>
        <many-to-one name="station" entity-name="com.xyst.dinas.biz.datamodel.Station" fetch="select">
            <column name="station_id"  not-null="false"/>
        </many-to-one>       
        <many-to-one name="dinasType" entity-name="com.xyst.dinas.biz.datamodel.DinasType" fetch="select">
            <column name="dinas_type_id"  not-null="false"/>
        </many-to-one>       
		<property name="saleDealAmount" type="big_decimal" not-null="false">
            <column name="sale_deal_amount" precision="12" scale="4"></column>
        </property>     
        <property name="saleAmount" type="big_decimal" not-null="false">
            <column name="sale_amount" precision="12" scale="4"></column>
        </property> 
		<property name="dealTime" type="timestamp" not-null="false">
            <column name="deal_time"></column>
        </property>
       	<property name="dealYear" type="integer" not-null="false">
			<column name="deal_year"></column>
		</property>
		<property name="dealMonth" type="integer" not-null="false">
			<column name="deal_month"></column>
		</property>
		<property name="dealDay" type="integer" not-null="false">
			<column name="deal_day"></column>
		</property>
	</class>
</hibernate-mapping>