Difference between revisions of "EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Basic Mappings/Default Conversions and Converters"

From Eclipsepedia

Jump to: navigation, search
m (Default Conversions and Converters)
m
Line 1: Line 1:
 +
{{EclipseLink_UserGuide}}
 
=Default Conversions and Converters=
 
=Default Conversions and Converters=
 
EclipseLink defines the following converter annotations and XML attributes (in addition to JPA-defined ones):
 
EclipseLink defines the following converter annotations and XML attributes (in addition to JPA-defined ones):

Revision as of 13:39, 18 June 2010



Default Conversions and Converters

EclipseLink defines the following converter annotations and XML attributes (in addition to JPA-defined ones):

EclipseLink persistence provider searches the converter annotations in the following order:

You can define converters at the class, field and property level. You can specify EclipseLink converters on the following classes:

  • @Entity
Elug javaspec icon.gif

For more information, see Section 8.1 "Entity" in the JPA Specification.

You can use EclipseLink converters with the following mappings:

If you specify a converter with any other type of mapping annotation, EclipseLink will throw an exception.


Eclipselink-logo.gif
Version: 2.1.0
Other versions...