|
Hi all,
I have following mapping file(mapping.xml).spaceDTO class contains objects of Pages class. Can I write the mapping for Class “Pages” in another xml file and then refer it through by main mapping file(mapping.xml).
<mapping> <class name="com.symphonyrpm.applayer.workspace.dto.WorkspaceDTO"> <map-to xml="container" />
<field name="plugInType" type="integer"> <bind-xml name="plugInType" node="attribute" /> </field>
<field name="wspId" type="string"> <bind-xml name="wspId" node="attribute" /> </field>
<field name="pages" type="com.symphonyrpm.applayer.workspace.dto.Pages"> <bind-xml name="pageList" /> </field> </class>
<class name="com.symphonyrpm.applayer.workspace.dto.Pages">
<field name="pages" type="com.symphonyrpm.applayer.workspace.dto.PageDTO" collection="arraylist"> <bind-xml name="pages" /> </field>
</class>
</mapping>
|
- [castor-user] Reference for Class in another xml file Alok Kumar\(RPM\)

