Jump to: navigation, search

Difference between revisions of "EclipseLink/UserGuide/MOXy/Simple Values/Special Schema Types/Binary Types"

m (Replacing page with 'See http://www.eclipse.org/eclipselink/documentation/2.4/moxy/special_schema_types003.htm')
 
(41 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{EclipseLink_UserGuide
+
See http://www.eclipse.org/eclipselink/documentation/2.4/moxy/special_schema_types003.htm
|info=y
+
|toc=y
+
|eclipselink=y
+
|eclipselinktype=MOXy
+
|api=y
+
|apis= * [http://www.eclipse.org/eclipselink/api/latest/javax/xml/bind/annotation/XmlSchemaType.html XmlSchemaType]
+
}}
+
 
+
= Binary Types=
+
 
+
There are a few extra things to consider when mapping to fields of type '''byte[ ]''' or '''Byte[]'''.
+
 
+
 
+
== byte[ ] versus Byte[] ==
+
 
+
Unlike other Java primitive/wrapper types, Eclipselink differentiates between '''byte[]''' (primitive) and '''Byte[]''' (wrapper) data types.  By default, '''byte[]''' will marshal to a single "blob" of XML, whereas '''Byte[]''' will marshal each byte as its own element.
+
 
+
<div style="width:700px">
+
<source lang="java">
+
</source>
+

Latest revision as of 09:41, 8 November 2012

See http://www.eclipse.org/eclipselink/documentation/2.4/moxy/special_schema_types003.htm