• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Spring 3.0 + REST Annotations

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic