<?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.transport.datamodel.VehicleDriverUser" table="xyst_dinas_transport_vehicle_driver_user" 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="createTime" type="timestamp" not-null="false">
            <column name="create_time"/>
        </property>
        <property name="modifyTime" type="timestamp" not-null="false">
            <column name="modify_time"/>
        </property>
        <property name="discard" type="boolean" not-null="false">
            <column name="discard"/>
        </property>
        <property name="del" type="boolean" not-null="false">
            <column name="del"/>
        </property>
        <many-to-one name="regionalCompany" entity-name="com.xyst.dinas.biz.datamodel.xystOrganization" fetch="select">
            <column name="regional_company"  not-null="false">
                <comment>所属组织机构</comment>
            </column>
        </many-to-one>
        <many-to-one name="driverUser" entity-name="com.beecode.inz.basis.datamodel.DriverUser" fetch="select">
            <column name="driver_user_id"  not-null="false">
                <comment>所属司机</comment>
            </column>
        </many-to-one>
        <many-to-one name="transportVehicle" entity-name="com.xyst.dinas.transport.datamodel.TransportVehicle" fetch="select">
            <column name="transport_vehicle_id"  not-null="false">
                <comment>所属车辆</comment>
            </column>
        </many-to-one>
    </class>
</hibernate-mapping>