Community
Participate
Working Groups
In JSON there is no concept of namespaces so if the meta-data has namespaces they will not get written to JSON during marshal. During unmarshal we need a way to compare the meta-data to the fields based just on local name, ignoring the namespace.
Created attachment 200473 [details] Proposed changes and tests
Created attachment 203021 [details] Updated support for users to supply a Map of prefix/uris
Created attachment 203022 [details] Updated support for users to supply a Map of prefix/uris
Created attachment 203023 [details] Updated support for users to supply a Map of prefix/uris
Created attachment 203032 [details] Updated support for users to supply a Map of prefix/uris
Created attachment 203066 [details] Update patch after review
Created attachment 203081 [details] Updated patch after review
Created attachment 210824 [details] Updated changes
Created attachment 210826 [details] Updated changes - test cases
Created attachment 210997 [details] Updated changed to make use of namespace prefix mapper code
Checked in support for marshal and unmarshal of namespaces in JSON. To set unmarshal namespaces use: Map namespaces = new HashMap<String, String>(); namespaces.put("namespace1", "ns1"); namespaces.put("namespace2", "ns2"); jsonUnmarshaller.setProperty(JAXBContext.JSON_NAMESPACE_PREFIX_MAPPER, namespaces); And on the marshaller jsonMarshaller.setProperty(JAXBContext.NAMESPACE_PREFIX_MAPPER, namespaces)
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink