<?xml version="1.0" encoding="UTF-8"?> <bm:model xmlns:e="leaf.service.exception" xmlns:ns2="leaf.database.local.oracle" xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="gas" baseTable="gld_account_sets" defaultOrderBy="account_set_code"> <bm:fields> <bm:field name="account_set_id" databaseType="BIGINT" datatype="java.lang.Long"/> <bm:field name="account_set_code" databaseType="VARCHAR" datatype="java.lang.String" prompt="GLD_ACCOUNT_SETS.ACCOUNT_SET_CODE"/> <bm:field name="account_set_name" databaseType="VARCHAR" datatype="java.lang.String" prompt="GLD_ACCOUNT_SETS.ACCOUNT_DESCRIPTION"/> <bm:field name="coa_structure_id" databaseType="BIGINT" datatype="java.lang.Long"/> <!-- <bm:field name="description" databaseType="VARCHAR" datatype="java.lang.String" forInsert="false" forUpdate="false" prompt="GLD_COA_STRUCTURE.DISCRIPTION"/> --> </bm:fields> <bm:primary-key> <bm:pk-field name="account_set_id"/> </bm:primary-key> <bm:relations> <bm:relation name="gcs" joinType="inner" refModel="gld.gld_coa_structure"> <bm:reference foreignField="coa_structure_id" localField="coa_structure_id"/> </bm:relation> </bm:relations> <bm:query-fields> <bm:query-field field="account_set_code" queryOperator="like"/> <bm:query-field field="account_set_name" queryOperator="like"/> <bm:query-field field="account_set_id" queryOperator="like"/> </bm:query-fields> <bm:features> <ns2:sequence-pk/> <f:standard-who/> <f:multi-language-storage/> </bm:features> <bm:ref-fields> <bm:ref-field name="coa_structure_code" prompt="GLD_COA_STRUCTURE.STRUCTURE_CODE" relationName="gcs" sourceField="coa_structure_code"/> <bm:ref-field name="description" prompt="GLD_COA_STRUCTURE.DISCRIPTION" relationName="gcs" sourceField="description"/> <bm:ref-field name="structure_format" prompt="GLD_COA_STRUCTURE.STRUCTURE_FORMAT" relationName="gcs" sourceField="structure_format"/> </bm:ref-fields> <e:exception-descriptor-config> <e:exception-descriptor exception="java.sql.SQLException" handleClass="leaf.database.SQLExceptionDescriptor"> <e:error-message code="1" message="GLD_ACCOUNT_SETS.ACCOUNT_SET_CODE_DISTINCT"/> </e:exception-descriptor> </e:exception-descriptor-config> </bm:model>