<?xml version="1.0" encoding="UTF-8"?> <!-- $Author: hand $Date: 2016-4-28 上午9:47:28 $Revision: 1.0 $Purpose: --> <bm:model xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="FND_CITY"> <bm:fields> <bm:field name="city_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CITY_ID" prompt="FND_CITY.CITY_ID"/> <bm:field name="province_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="PROVINCE_ID" prompt="FND_CITY.PROVINCE_ID"/> <bm:field name="city_code" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="CITY_CODE" prompt="FND_CITY.CITY_CODE"/> <bm:field name="description" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DESCRIPTION" prompt="FND_CITY.DESCRIPTION"/> <bm:field name="print_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="PRINT_NAME" prompt="FND_CITY.PRINT_NAME"/> <bm:field name="enabled_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLED_FLAG" prompt="FND_CITY.ENABLED_FLAG"/> </bm:fields> <!-- <bm:operations> <bm:operation name="query"> <bm:query-sql><![CDATA[ SELECT * FROM FND_CITY t1 #WHERE_CLAUSE# ]]></bm:query-sql> </bm:operation> </bm:operations> --> <bm:features> <f:standard-who/> </bm:features> <bm:primary-key> <bm:pk-field name="city_id"/> </bm:primary-key> <!-- <bm:query-fields> <bm:query-field name="province_id" queryExpression="t1.province_id=${@province_id}"/> </bm:query-fields> --> <bm:data-filters> <bm:data-filter enforceOperations="query" expression="t1.province_id=${@express_province} "/> </bm:data-filters> </bm:model>