18.1.1. 指定同时映射XML和类

这是一个同时映射POJO和XML的例子:

<class name="Account" 
        table="ACCOUNTS" 
        node="account">

    <id name="accountId" 
            column="ACCOUNT_ID" 
            node="@id"/>

    <many-to-one name="customer" 
            column="CUSTOMER_ID" 
            node="customer/@id" 
            embed-xml="false"/>

    <property name="balance" 
            column="BALANCE" 
            node="balance"/>

    ...

</class>