Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Versioning with OXM(Concerns OXMapping of the same kind of Business Object)
Versioning with OXM [message #1239105] Mon, 03 February 2014 11:22
Pëtr Andreev is currently offline Pëtr AndreevFriend
Messages: 3
Registered: January 2014
Junior Member
Hello, i have a fundamental question (im looking for a kind of Best Practice) about OXMapping: imagine we have a business object (BO) which is mapped to XML using MOXy OXM-binding with xml-bindings xmlns="".
Then we have a relationship: <-> bo-oxm-v0.xml(<xml-bindings package-name="") <-> XML (version 0)

The question is: what is the best way to change the mapping of XML(v1) and provide a new bo-oxm-v1.xml while still supporting the old version of XML (v0). Both OXMs would map at least two different XML-inputs to the same BO, bringing down different XML-Formats to the common denominator (BO) in that way.
The only chance i can figure out right now is to use a versioning at the package level like: <-> bo-oxm-v0.xml(package-name="") <-> XML (version 0) <-> bo-oxm-v1.xml(package-name="") <-> XML (version 1)
    ....... <-> bo-oxm-vX.xml(package-name="") <-> XML (version X)

Is it a right way or are there some other options?
Thank you!
Previous Topic:Dynamic Moxy Exception for createContextFromXSD
Next Topic:JAXBErrorHandler#warning
Goto Forum:

Current Time: Sat Nov 28 09:54:02 GMT 2015

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

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