<?xml version="1.0" encoding="UTF-8"?> <!-- $Author: niujiaqing1265 $ $Date: 2010/12/09 05:48:38 $ $Revision: 1.2 $ $Purpose: 岗位组 基础bm --> <bm:model xmlns:e="leaf.service.exception" xmlns:ns2="leaf.database.local.oracle" xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="p" baseTable="exp_position_groups"> <bm:fields> <bm:field name="position_group_id" databaseType="NUMBER" datatype="java.lang.Long"/> <bm:field name="position_group_code" databaseType="VARCHAR2" datatype="java.lang.String" prompt="EXP_POSITION_GROUPS.POSITION_GROUP_CODE"/> <bm:field name="description_id" databaseType="BIGINT" datatype="java.lang.Long" multiLanguage="true" multiLanguageDescField="position_group_description"/> <bm:field name="position_group_description" databaseType="VARCHAR" datatype="java.lang.String" forInsert="false" forUpdate="false" prompt="EXP_POSITION_GROUPS.POSITION_GROUP_DESCRIPTION"/> <bm:field name="enabled_flag" databaseType="VARCHAR2" datatype="java.lang.String" prompt="HAP_ENABLED_FLAG"/> <bm:field name="company_id" databaseType="NUMBER" datatype="java.lang.Long"/> </bm:fields> <bm:primary-key> <bm:pk-field name="position_group_id"/> </bm:primary-key> <bm:query-fields> <bm:query-field field="position_group_id" queryOperator="="/> <bm:query-field field="position_group_code" queryOperator="like"/> <bm:query-field field="position_group_description" queryExpression="exists (select 1 from fnd_descriptions fd where p.description_id=fd.description_id and fd.description_text like ${@position_group_description} and fd.language = ${/session/@lang})"/> </bm:query-fields> <!--<bm:data-filters> <bm:data-filter name="company_id" enforceOperations="query" expression="p.company_id = ${/session/@company_id}"/> </bm:data-filters>--> <bm:features> <ns2:sequence-pk/> <f:standard-who/> <f:multi-language-storage/> </bm:features> <bm:ref-fields/> <e:exception-descriptor-config> <e:exception-descriptor exception="java.sql.SQLException" handleClass="leaf.database.SQLExceptionDescriptor"> <e:error-message code="1" message="EXP_POSITION_GROUPS.DISTINCT"/> </e:exception-descriptor> </e:exception-descriptor-config> </bm:model>