Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » [moxy] Same domain classes, different mapping for XML and JSON (dash-case vs camelCase)
[moxy] Same domain classes, different mapping for XML and JSON (dash-case vs camelCase) [message #1710196] Mon, 05 October 2015 09:33
Filip Krikava is currently offline Filip KrikavaFriend
Messages: 45
Registered: January 2012
Member
I would like to replace all the manual parsing and generation of XML and JSON in our project by EclipseLink.
So far all works fine, but the main problem is that the XML files use dash-case (e.g. '<data-link>') while JSON files use camelCase (e.g. 'dataLink'), something I won't be able to change. The good thing is that the conversion is systematic.

Is there any way, how I could use the same domain classes (generated from a XSD schema via XJC) to support both cases?

Thanks!
Previous Topic:Cache coordination propagation mode with JGroups
Next Topic:Can I hint Eclipselink to use the shared cache after a native query
Goto Forum:
  


Current Time: Tue Dec 03 18:05:54 GMT 2024

Powered by FUDForum. Page generated in 0.02896 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top