<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: hp  
    $Date: 2015-4-8 上午10:31:44  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="INS_INSURANCE_CONTENT_DETAIL" needAccessControl="false">
    <bm:fields>
        <bm:field name="content_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONTENT_ID" prompt="INS_INSURANCE_CONTENT_DETAIL.CONTENT_ID"/>
        <bm:field name="template_class" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TEMPLATE_CLASS" prompt="INS_INSURANCE_CONTENT_DETAIL.TEMPLATE_CLASS"/>
        <bm:field name="template_file" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TEMPLATE_FILE" prompt="INS_INSURANCE_CONTENT_DETAIL.TEMPLATE_FILE"/>
        <bm:field name="template_desc" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TEMPLATE_DESC" prompt="INS_INSURANCE_CONTENT_DETAIL.TEMPLATE_DESC"/>
        <bm:field name="file_path" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FILE_PATH" prompt="INS_INSURANCE_CONTENT_DETAIL.FILE_PATH"/>
        <bm:field name="file_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="FILE_NAME" prompt="INS_INSURANCE_CONTENT_DETAIL.FILE_NAME"/>
        <bm:field name="content_print_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CONTENT_PRINT_FLAG" prompt="INS_INSURANCE_CONTENT_DETAIL.CONTENT_PRINT_FLAG"/>
        <bm:field name="print_user_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="PRINT_USER_ID" prompt="INS_INSURANCE_CONTENT_DETAIL.PRINT_USER_ID"/>
        <bm:field name="policy_id"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
    </bm:features>
    <bm:query-fields>
        <bm:query-field field="content_print_flag" queryOperator="="/>
        <bm:query-field field="content_id" queryOperator="="/>
        <bm:query-field field="template_class" queryOperator="="/>
        <bm:query-field field="print_user_id" queryOperator="="/>
        <bm:query-field field="policy_id" queryOperator="="/>
    </bm:query-fields>
    <bm:data-filters>
        <bm:data-filter name="query" expression="print_user_id = ${/session/@user_id}"/>
    </bm:data-filters>
</bm:model>
