<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: 吴军  
    $Date: 2016年10月18日9:27:53
    $Revision: 1.0  
    $Purpose: 中介机构聘用合同模板定义
-->
<bm:model xmlns:o="leaf.database.local.oracle" xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="HIRED_REQ_CONTENT_TEMPLATE">
    <bm:fields>
        <bm:field name="template_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="TEMPLATE_ID" prompt="HIRED_REQ_CONTENT_TEMPLATE.TEMPLATE_ID"/>
        <bm:field name="template_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TEMPLATE_CODE" prompt="HIRED_REQ_CONTENT_TEMPLATE.TEMPLATE_CODE"/>
        <bm:field name="template_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TEMPLATE_NAME" prompt="HIRED_REQ_CONTENT_TEMPLATE.TEMPLATE_NAME"/>
        <bm:field name="enabled_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLED_FLAG" prompt="HIRED_REQ_CONTENT_TEMPLATE.ENABLED_FLAG"/>
        <bm:field name="mapping_xml" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="MAPPING_XML" prompt="HIRED_REQ_CONTENT_TEMPLATE.MAPPING_XML"/>
        <bm:field name="mapping_svc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="MAPPING_SVC" prompt="HIRED_REQ_CONTENT_TEMPLATE.MAPPING_SVC"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
        <o:sequence-pk/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="template_id"/>
    </bm:primary-key>
    <bm:query-fields>
        <bm:query-field field="template_code" queryOperator="="/>
        <bm:query-field name="template_name" queryExpression="t1.template_name like &apos;%&apos;||${@template_name}||&apos;%&apos;"/>
        <bm:query-field field="enabled_flag" queryOperator="="/>
        <bm:query-field name="mapping_xml" queryExpression="t1.mapping_xml like &apos;%&apos;||${@mapping_xml}||&apos;%&apos;"/>
        <bm:query-field name="mapping_svc" queryExpression="t1.mapping_svc like &apos;%&apos;||${@mapping_svc}||&apos;%&apos;"/>
    </bm:query-fields>
</bm:model>
