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/UserGuide/MOXy/Simple Values/Special Schema Types/Binary Types"

(New page: {{EclipseLink_UserGuide |info=y |toc=y |eclipselink=y |eclipselinktype=MOXy |api=y |apis= * [http://www.eclipse.org/eclipselink/api/latest/javax/xml/bind/annotation/XmlSchemaType.html XmlS...)
 
Line 10: Line 10:
 
= Binary Types=
 
= Binary Types=
  
There are a few extra things to consider when mapping to fields of type '''byte[]''' or '''Byte[]'''.
+
There are a few extra things to consider when mapping to fields of type '''byte[ ]''' or '''Byte[]'''.
  
  
== byte[] versus 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.
 
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.

Revision as of 12:29, 28 June 2011

EclipseLink MOXy

Eclipselink-logo.gif
EclipseLink
Website
Download
Community
Mailing ListForumsIRCmattermost
Issues
OpenHelp WantedBug Day
Contribute
Browse Source

Elug api package icon.png Key API

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.

 

Back to the top