<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: WangYu  
    $Date: 2014-10-20 上午09:25:42  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:e="leaf.service.exception" xmlns:o="leaf.database.local.oracle" xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="HLS_CAR_ORGANIZATION">
    <bm:fields>
        <bm:field name="organization_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="ORGANIZATION_ID" prompt="HLS_CAR_ORGANIZATION.ORGANIZATION_ID"/>
        <bm:field name="organization_code" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forInsert="true" forQuery="true" physicalName="ORGANIZATION_CODE" prompt="代码"/>
        <bm:field name="organization_name" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forInsert="true" forQuery="true" physicalName="ORGANIZATION_NAME" prompt="名称"/>
        <bm:field name="external_business_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="EXTERNAL_BUSINESS_FLAG" prompt="HLS_CAR_ORGANIZATION.EXTERNAL_BUSINESS_FLAG"/>
        <bm:field name="enabled_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLED_FLAG" prompt="HLS_CAR_ORGANIZATION.ENABLED_FLAG"/>
        <bm:field name="description" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DESCRIPTION" prompt="HLS_CAR_ORGANIZATION.DESCRIPTION"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
        <o:sequence-pk/>
    </bm:features>
    <bm:query-fields>
        <bm:query-field field="enabled_flag" queryOperator="="/>
        <bm:query-field field="organization_code" queryOperator="="/>
        <bm:query-field field="organization_name" queryOperator="like"/>
    </bm:query-fields>
    <bm:primary-key>
        <bm:pk-field name="organization_id"/>
    </bm:primary-key>
    <e:exception-descriptor-config>
        <e:exception-descriptor exception="java.sql.SQLException" handleClass="leaf.database.SQLExceptionDescriptor">
            <e:error-message code="1" message="HLS103.HLS_DIVISION.CODE_UNIQUE_ERROR"/>
        </e:exception-descriptor>
    </e:exception-descriptor-config>
</bm:model>
