This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring 3.0 + REST Annotations

 
Shriram Gopalakrishnan
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is your Spring Rest Annotation question?

Mark
 
Shriram Gopalakrishnan
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic