<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:o="leaf.database.local.oracle" xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="HLS_PRODUCT_PLAN_DEFINITION" defaultOrderBy="t1.product_type,t1.product_code">
    <bm:fields>
        <bm:field name="product_plan_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="PRODUCT_PLAN_ID" prompt="HLS_PRODUCT_PLAN_DEFINITION.PRODUCT_PLAN_ID"/>
        <bm:field name="product_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PRODUCT_TYPE" prompt="HLS_PRODUCT_PLAN_DEFINITION.PRODUCT_TYPE"/>
        <bm:field name="product_number" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PRODUCT_NUMBER" prompt="HLS_PRODUCT_PLAN_DEFINITION.PRODUCT_NUMBER"/>
        <bm:field name="gps_install_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="GPS_INSTALL_FLAG" prompt="HLS_PRODUCT_PLAN_DEFINITION.GPS_INSTALL_FLAG"/>
        <bm:field name="discount_method" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DISCOUNT_METHOD" prompt="HLS_PRODUCT_PLAN_DEFINITION.DISCOUNT_METHOD"/>
        <bm:field name="down_payment_ratio_from" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DOWN_PAYMENT_RATIO_FROM" prompt="HLS_PRODUCT_PLAN_DEFINITION.DOWN_PAYMENT_RATIO_FROM"/>
        <bm:field name="down_payment_ratio_to" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DOWN_PAYMENT_RATIO_TO" prompt="HLS_PRODUCT_PLAN_DEFINITION.DOWN_PAYMENT_RATIO_TO"/>
        <bm:field name="deposit_ratio_from" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DEPOSIT_RATIO_FROM" prompt="HLS_PRODUCT_PLAN_DEFINITION.DEPOSIT_RATIO_FROM"/>
        <bm:field name="deposit_ratio_to" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DEPOSIT_RATIO_TO" prompt="HLS_PRODUCT_PLAN_DEFINITION.DEPOSIT_RATIO_TO"/>
        <bm:field name="to_grant" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="TO_GRANT" prompt="HLS_PRODUCT_PLAN_DEFINITION.TO_GRANT"/>
        <bm:field name="special_note" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="SPECIAL_NOTE" prompt="HLS_PRODUCT_PLAN_DEFINITION.SPECIAL_NOTE"/>
        <bm:field name="enable_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLE_FLAG" prompt="HLS_PRODUCT_PLAN_DEFINITION.ENABLE_FLAG"/>
        <bm:field name="product_name_write" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PRODUCT_NAME_WRITE" prompt="HLS_PRODUCT_PLAN_DEFINITION.PRODUCT_NAME_WRITE"/>
        <bm:field name="product_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PRODUCT_CODE" prompt="HLS_PRODUCT_PLAN_DEFINITION.PRODUCT_CODE"/>
        <bm:field name="times" databaseType="NUMBER" datatype="java.lang.Long" physicalName="TIMES" prompt="HLS_PRODUCT_PLAN_DEFINITION.TIMES"/>
        <bm:field name="finance_amount_from" databaseType="NUMBER" datatype="java.lang.Long" physicalName="FINANCE_AMOUNT_FROM" prompt="HLS_PRODUCT_PLAN_DEFINITION.FINANCE_AMOUNT_FROM"/>
        <bm:field name="finance_amount_to" databaseType="NUMBER" datatype="java.lang.Long" physicalName="FINANCE_AMOUNT_TO" prompt="HLS_PRODUCT_PLAN_DEFINITION.FINANCE_AMOUNT_TO"/>
        <bm:field name="btb_int_rate_implicit" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BTB_INT_RATE_IMPLICIT" prompt="HLS_PRODUCT_PLAN_DEFINITION.BTB_INT_RATE_IMPLICIT"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
        <o:sequence-pk/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="product_plan_id"/>
    </bm:primary-key>
    <bm:query-fields>
        <bm:query-field name="product_type" queryExpression="t1.product_type like ${@product_type}"/>
        <bm:query-field name="pay_type" queryExpression="t1.pay_type like ${@pay_type}"/>
        <bm:query-field name="times_from" queryExpression="t1.times_from like ${@times_from}"/>
        <bm:query-field name="times_to" queryExpression="t1.times_to like ${@times_to}"/>
        <bm:query-field name="down_payment_ratio_from" queryExpression="t1.down_payment_ratio_from like ${@down_payment_ratio_from}*100"/>
        <bm:query-field name="down_payment_ratio_to" queryExpression="t1.down_payment_ratio_to like ${@down_payment_ratio_to}*100"/>
        <bm:query-field name="deposit_ratio_from" queryExpression="t1.deposit_ratio_from like ${@deposit_ratio_from}*100"/>
        <bm:query-field name="deposit_ratio_to" queryExpression="t1.deposit_ratio_to like ${@deposit_ratio_to}*100"/>
        <bm:query-field name="enable_flag" queryExpression="t1.enable_flag like ${@enable_flag}"/>
        <bm:query-field name="product_code" queryExpression="t1.product_code like ${@product_code}"/>
        <bm:query-field name="product_name_write" queryExpression="t1.product_code like ${@product_name_write}"/>
    </bm:query-fields>
</bm:model>
