Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "EclipseLink/DesignDocs/317962/Phase1"

(Annotations)
(Annotations)
Line 43: Line 43:
 
| align="center" |    
 
| align="center" |    
 
| align="center" | X
 
| align="center" | X
| align="center" |  
+
| align="center" | X
 
|-
 
|-
 
| XmlPaths
 
| XmlPaths

Revision as of 10:47, 25 June 2010

Phase 1 - Provide MOXy annotation support equivalent to our XML metadata support

This phase of development involves providing MOXy annotation support equivalent to the existing EclipseLink XML metadata support

Annotations

The following annotations will be targeted in this phase:

Annotation XML Metadata Tag Package Type Field Method
XmlReadOnly read-only     X X
XmlWriteOnly write-only     X X
XmlCDATA cdata     X X
XmlAccessMethods xml-access-methods     X X
XmlPaths xml-elements     X X
XmlNullPolicy xml-null-policy     X X
XmlIsSetNullPolicy xml-is-set-null-policy     X X
XmlIsSetParameters n/a     X X
XmlIsSetParameter is-set-parameter     X X

Example: ??? annotation

Java Metadata

The following example will demonstrate how the ??? annotation can be applied:

org.example.???.java

package org.example;

XML Metadata

???

If this is present in the XML then it completely replaces the corresponding annotation.

org/example/eclipselink-oxm.xml

This XML file represents metadata overrides for the org.example.??? class.

<?xml version="1.0" encoding="US-ASCII"?>
<xml-bindings xmlns="http://www.eclipse.org/eclipselink/xsds/persistence/oxm">
</xml-bindings>

Back to the top