This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring 3.0 + REST Annotations  RSS feed

 
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: 17309
11
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: 17309
11
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!