Discharging.hbm.xml 4.87 KB
Newer Older
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 43
<?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.production.datamodel.Discharging" table="xyst_dinas_production_discharging" 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>
        <many-to-one name="creator" entity-name="com.beecode.bap.staff.datamodel.Staff" fetch="select">
            <column name="creator_id"  not-null="false"/>
        </many-to-one>
        <property name="modifyTime" type="timestamp" not-null="false">
            <column name="modify_time"/>
        </property>
        <many-to-one name="modifier" entity-name="com.beecode.bap.staff.datamodel.Staff" fetch="select">
            <column name="modifier_id"  not-null="false"/>
        </many-to-one>
        <property name="billState" type="nstring" not-null="false">
            <column name="bill_state" length="100"/>
        </property>
        <many-to-one name="bizProcess" entity-name="com.beecode.bap.workflow.datamodel.BizProcess" fetch="select">
            <column name="biz_process_id"  not-null="false"/>
        </many-to-one>
        <property name="billCode" type="nstring" not-null="false">
            <column name="bill_code" length="200"/>
        </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>
        <property name="approveState" type="integer" not-null="false">
            <column name="approve_state"/>
        </property>

王炜晨 committed
44
        <many-to-one name="regionalCompany" entity-name="com.xyst.dinas.biz.datamodel.xystOrganization" fetch="select">
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
            <column name="regional_company"  not-null="false">
                <comment>所属组织机构</comment>
            </column>
        </many-to-one>
        <many-to-one name="sandMiningArea" entity-name="com.xyst.dinas.biz.datamodel.SandMiningArea" fetch="select">
            <column name="sand_mining_area_id"  not-null="false">
                <comment>所属采区</comment>
            </column>
        </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">
                <comment>所属场站</comment>
            </column>
        </many-to-one>

        <many-to-one name="sandMiningShip" entity-name="com.xyst.dinas.biz.datamodel.ShipInfo" fetch="select">
            <column name="sand_mining_ship_id"  not-null="false">
                <comment>采砂船</comment>
            </column>
        </many-to-one>

        <many-to-one name="transportShip" entity-name="com.xyst.dinas.biz.datamodel.ShipInfo" fetch="select">
            <column name="transport_ship_id"  not-null="false">
                <comment>运砂船</comment>
            </column>
        </many-to-one>

        <property name="dischargingWeight" type="big_decimal" not-null="false">
            <column name="discharging_weight" precision="12" scale="2">
                <comment>上岸砂石量</comment>
            </column>
        </property>

        <property name="dischargingTime" type="timestamp" not-null="false">
            <column name="discharging_time" >
                <comment>上岸时间</comment>
            </column>
        </property>

        <property name="dischargingRegistrant" type="nstring" not-null="false">
            <column name="discharging_registrant" length="50" >
                <comment>接驳人员</comment>
            </column>
        </property>

        <property name="type" type="int" >
            <column name="type" not-null="false">
                <comment>数据类型,0每日新增 1数据修正新增</comment>
            </column>
        </property>
96 97 98 99 100 101 102 103 104 105 106 107
        <property name="parentId" type="uuid-binary" >
            <column name="parent_id" not-null="false" length="16">
                <comment>所属的修正数据id</comment>
            </column>
        </property>

        <property name="reason" type="nstring" >
            <column name="reason" not-null="false">
                <comment>修正原因</comment>
            </column>
        </property>

108 109 110
    </class>

</hibernate-mapping>