ast_car_gps_address.lwm 1.19 KB
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:f="leaf.database.features" xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="AST_CAR_GPS_ADDRESS" defaultOrderBy="t1.gps_address_id desc">
    <bm:fields>
        <bm:field name="gps_address_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="GPS_ADDRESS_ID" prompt="AST_CAR_GPS_ADDRESS.GPS_ADDRESS_ID"/>
        <bm:field name="ast_car_gps_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="AST_CAR_GPS_ID" prompt="AST_CAR_GPS_ADDRESS.AST_CAR_GPS_ID"/>
        <bm:field name="address" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ADDRESS" prompt="AST_CAR_GPS_ADDRESS.ADDRESS"/>
        <bm:field name="creation_date_dis" expression="to_char(t1.creation_date,&apos;yyyy-mm-dd hh24:mi:ss&apos;)" forInsert="false" forUpdate="false"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
    </bm:features>
    <bm:data-filters>
        <bm:data-filter name="ast_car_gps_id" enforceOperations="query" expression="exists(select 1 from ast_car_gps acg where acg.ast_car_gps_id = t1.ast_car_gps_id and acg.contract_id=${/parameter/@contract_id})"/>
    </bm:data-filters>
</bm:model>