<?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="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="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>