SandMiningArea.hbm.xml 4.44 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
<?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.biz.datamodel.SandMiningArea" table="xyst_dinas_biz_sand_mining_area" 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">
13
            <column name="create_time"/>
14 15 16 17 18
        </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">
19
            <column name="modify_time"/>
20 21 22 23 24
        </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">
25
            <column name="bill_state" length="100"/>
26 27 28 29 30
        </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">
31
            <column name="bill_code" length="200"/>
32 33
        </property>
        <property name="discard" type="boolean" not-null="false">
34
            <column name="discard"/>
35 36
        </property>
        <property name="del" type="boolean" not-null="false">
37
            <column name="del"/>
38 39
        </property>

王炜晨 committed
40
        <many-to-one name="regionalCompany" entity-name="com.xyst.dinas.biz.datamodel.xystOrganization" fetch="select">
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
            <column name="regional_company"  not-null="false">
                <comment>所属部门</comment>
            </column>
        </many-to-one>
        <property name="sandMiningAreaName" type="nstring" not-null="true">
            <column name="sand_mining_area_name" length="30"  >
                <comment>采区名称</comment>
            </column>
        </property>

        <property name="sandMiningQuantity" type="big_decimal" not-null="false">
            <column name="sand_mining_quantity" precision="12" scale="2">
                <comment>可以开采量</comment>
            </column>
        </property>
        <property name="sandMiningAreaType" type="integer" not-null="true">
            <column name="sand_mining_area_type" >
58
                <comment>采区类型,0流域 1可采区 2禁采区 3保留区 4综合弃砂区</comment>
59 60 61 62 63 64

            </column>
        </property>
        <property name="stationCoordinate" type="nstring" not-null="false">
            <column name="station_coordinate">
                <comment>采区坐标区域 按照逗号和分号分隔</comment>
65 66
            </column>
        </property>
67

68 69 70
        <property name="areaColor" type="nstring" not-null="false">
            <column name="area_color">
                <comment>采区在地图上展示的颜色</comment>
71 72
            </column>
        </property>
73

74 75 76 77 78
        <property name="reason" type="nstring" not-null="false">
            <column name="reason" length="300" >
                <comment>备注</comment>
            </column>
        </property>
79

80
        <property name="status" type="int" not-null="false">
81
            <column name="status">
82
                <comment>审批状态2未通过 1通过 0待审核</comment>
83 84 85 86 87 88 89
            </column>
        </property>
        <property name="failureReason" type="nstring" not-null="false">
            <column name="failure_reason" length="300" >
                <comment>不通过原因</comment>
            </column>
        </property>
90 91 92 93 94 95 96
        <property name="sortOrder" type="int" not-null="true"  unique="true" index="sand_mining_area_sort_index" >
            <column name="sort_order" length="10">
                <comment >排序</comment>
            </column>
        </property>
    </class>
</hibernate-mapping>