Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Spring 3.0 + REST Annotations

 
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]

 
ranger
Posts: 17346
11
Mac IntelliJ IDE 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
Posts: 17346
11
Mac IntelliJ IDE 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.
 
Water! People swim in water! Even tiny ads swim in water:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic