File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Spring 3.0 + REST Annotations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring 3.0 + REST Annotations" Watch "Spring 3.0 + REST Annotations" New topic
Author

Spring 3.0 + REST Annotations

Shriram Gopalakrishnan
Ranch Hand

Joined: Feb 20, 2007
Posts: 44


Looking at the Above XML Structure I am trying to achieve 2 things.
1. Want to replace the <list> tag to <scripts>
2. Want to place an root tag to all the states like
<states>
<state>...</state><state>...</state>
</states>

Here is my XStream Annotated POJO class[ note that the same class is annotated for Hibernate Activity]

Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

What is your Spring Rest Annotation question?

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Shriram Gopalakrishnan
Ranch Hand

Joined: Feb 20, 2007
Posts: 44
1. Want to replace the <list> tag to <scripts> ? How can this be achieved using annotations
2. Want to place an root tag to all the states like example below

<states>
<state>...</state><state>...</state>
</states>
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

Shriram Gopalakrishnan wrote:1. Want to replace the <list> tag to <scripts> ? How can this be achieved using annotations
2. Want to place an root tag to all the states like example below

<states>
<state>...</state><state>...</state>
</states>


But that has nothing to do with Spring or Spring's Rest annotations, so if you question is xml related, I can move this thread to that forum.

Please let me know

Mark
Shriram Gopalakrishnan
Ranch Hand

Joined: Feb 20, 2007
Posts: 44
Well Since its wired through Spring MVC as given below:


I had the ConfigMarshaller as given below:


As seen above I am able to alias List with Groups but this needs to happen dynamically since its not always groups.

Please move this to XML thread if you still feel that this issue is more related to XML rather than Spring + Rest.
 
 
subject: Spring 3.0 + REST Annotations