<?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.sales.datamodel.Inventory" table="xyst_dinas_sales_inventory" 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>
		<version name="version" type="int" column="version"/>
		<property name="discard" type="boolean" not-null="false">
			<column name="discard"></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="station" entity-name="com.xyst.dinas.biz.datamodel.Station" fetch="select">
            <column name="station"  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" not-null="false"></column>
		</many-to-one>
		<property name="amount" type="big_decimal" not-null="false">
			<column name="amount" precision="12" scale="4"></column>
		</property>
		<property name="price" type="big_decimal" not-null="false">
            <column name="price" precision="12" scale="2"></column>
        </property>
	</class>
</hibernate-mapping>