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/293925/MOXyExtensions/XMLDirectMapping"

(XMLDirectMapping (page under construction))
Line 2: Line 2:
 
= XMLDirectMapping  (page under construction) =
 
= XMLDirectMapping  (page under construction) =
  
Provide support for XML direct mappings.
+
Provide support for XML direct mappings. The following structures will be used to support XML direct mapping configuration:
 +
* <code>xml-attribute</code>
 +
* <code>xml-element</code>
 +
 
 +
== Following is an outline of what information needs to be captured ==
 +
 
 +
<source lang="xml">
 +
<xml-direct-mapping
 +
xmlns="http://www.eclipse.org/eclipselink/xsds/persistence">
 +
<attribute-name>String</attribute-name>
 +
<read-only>false</read-only>
 +
<get-method>String</get-method>
 +
<set-method>String</set-method>
 +
<properties>
 +
<property name="String">
 +
<value>Text</value>
 +
</property>
 +
<property name="String">
 +
<value>Text</value>
 +
</property>
 +
</properties>
 +
<field name="String"/>
 +
<null-value>String</null-value>
 +
<converter/>
 +
<attribute-classification>String</attribute-classification>
 +
<is-cdata>1</is-cdata>
 +
<null-policy>
 +
<xsi-nil-represents-null>false</xsi-nil-represents-null>
 +
<empty-node-represents-null>false</empty-node-represents-null>
 +
<null-representation-for-xml>XSI_NIL</null-representation-for-xml>
 +
</null-policy>
 +
</xml-direct-mapping>
 +
</source>

Revision as of 11:59, 5 February 2010

XMLDirectMapping (page under construction)

Provide support for XML direct mappings. The following structures will be used to support XML direct mapping configuration:

  • xml-attribute
  • xml-element

Following is an outline of what information needs to be captured

<xml-direct-mapping
	xmlns="http://www.eclipse.org/eclipselink/xsds/persistence">
	<attribute-name>String</attribute-name>
	<read-only>false</read-only>
	<get-method>String</get-method>
	<set-method>String</set-method>
	<properties>
		<property name="String">
			<value>Text</value>
		</property>
		<property name="String">
			<value>Text</value>
		</property>
	</properties>
	<field name="String"/>
	<null-value>String</null-value>
	<converter/>
	<attribute-classification>String</attribute-classification>
	<is-cdata>1</is-cdata>
	<null-policy>
		<xsi-nil-represents-null>false</xsi-nil-represents-null>
		<empty-node-represents-null>false</empty-node-represents-null>
		<null-representation-for-xml>XSI_NIL</null-representation-for-xml>
	</null-policy>
</xml-direct-mapping>

Back to the top