for example a mapping.xml can be done this way:
<class name="com.test.bo.TestBean" identity="siteCode">
<cache-type type="none"/>
<map-to table="SRT.VW_TEST" />
<field name="siteCode" type="java.lang.String" >
<sql name="SITE_CODE" type="varchar" />
</field>
<field name="countryCode" type="java.lang.String" >
<sql name="COUNTRY_CODE" type="varchar" />
</field>
<field name="locCode" type="java.lang.String" >
<sql name="LOC_CODE" type="varchar" />
</field>
</class>
can you map 4 different views at the same time in one bean? for example:
<class name="com.test.bo.TestBean" identity="siteCode">
<cache-type type="none"/>
<map-to table="SRT.VW_TEST" />
<map-to table="SRT.VW_TEST1" />
<map-to table="SRT.VW_TEST2" />
<field name="siteCode" type="java.lang.String" >
<sql name="SITE_CODE" type="varchar" />
</field>
<field name="countryCode" type="java.lang.String" >
<sql name="COUNTRY_CODE" type="varchar" />
</field>
<field name="locCode" type="java.lang.String" >
<sql name="LOC_CODE" type="varchar" />
</field>
</class>
are you using castor ?
check your dtd file that you are use for mapping.xml (for example mapping.dtd)
In that file you can search for 'map-to' element, if this 'map-to' is ended with '*' that mean you can do for more than one table, otherwise no.
but if you are using castor , you cannot do that, the alternative way see reply #1