neelrev / resting

Lightweight Java component to consume REST service and transform response into objects.
0 stars 0 forks source link

create-at convert to createdAt #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The result that is returned from a web service has a tag created-at.. How do I 
convert that to createdAt field on my object. I can't see a way to do this.

<standard>
    <created-at type="datetime">2011-05-27T14:48:18Z</created-at>
    <id type="integer">1</id>
    <lft type="integer">1</lft>
    <parent-id type="integer" nil="true"></parent-id>
    <rgt type="integer">2</rgt>
    <title>Safety</title>
    <updated-at type="datetime">2011-05-27T14:48:18Z</updated-at>
  </standard>

Original issue reported on code.google.com by rmahnove...@gmail.com on 28 May 2011 at 4:45

GoogleCodeExporter commented 9 years ago
I am looking into this issue and will update the thread asap.

Original comment by sujata...@gmail.com on 2 Jun 2011 at 7:28

GoogleCodeExporter commented 9 years ago
Resting internally uses XStream v1.3 to handle XML parsing which is throwing 
this exception. Please go through the documentation available at 
http://xstream.codehaus.org/. You may need to write a custom converter for 
handling this logic and register it with XMLAlias using addConverter() method.

Original comment by sujata...@gmail.com on 9 Jun 2011 at 7:44