hi,
I have XML file with full of data.
Like:
Quote:
<nodes>
<node source_id="0" source_ref="TEST" node_name="TestNode" >
<node source_id="0" source_ref="TESTC" previous_name="" node_name="TestNodechild" >
</node>
</node>
</nodes>
I have the mapping file like this.
Quote:
<hibernate-mapping>
<class name="com.model.TestNodeTbl" table="Test_NODE_TBL" node="node" >
<id name="nodeId" column="NODE_ID" unsaved-value="null" >
<generator class="increment"/>
</id>
<property name="nodeName" column="NODE_NAME" length="200" not-null="true" node="@node_name" />
</class>
</hibernate-mapping>
And I have the POJO class TestNodeTbl.
But I don't know how to retrieve the XML data into the POJO.Please let me know how I can get the XML data as a POJO object.