• 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

JAxb binding problem

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I got a problem binding a Jaxb class in a json output.
I got this error "Property startdate appears in @XmlType.propOrder, but no such property exists. Maybe you meant startDate?" when I try to bind the following class.
Apparently this is because the json variable names are generated to be identical to the java variable name.
I’m sure there must be an annotation(like the one I tried to use "@XmlElement" with any success) that can be used to override the generated variable name so that we can change the java variable name in order to get the method names right.
Anyone could help me on this?


 
reply
    Bookmark Topic Watch Topic
  • New Topic