-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: How to convert XML data to the POJO object
PostPosted: Mon Jun 08, 2009 6:16 am 
Newbie

Joined: Mon Jun 08, 2009 6:02 am
Posts: 1
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.