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

From Eclipsepedia

Jump to: navigation, search
m (New page: =Default Conversions and Converters= EclipseLink defines the following converter annotations (in addition to JPA-defined ones): * <tt>@Converter<...)
 
m (Default Conversions and Converters)
Line 34: Line 34:
  
 
{{EclipseLink_JPA
 
{{EclipseLink_JPA
|previous=[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Basic Mappings|Basic Mappings]]
+
|previous=[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Column|Column]]
|next=[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Basic Mappings/Default Conversions and Converters|Default Conversions and Converters]]
+
|next=[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Basic Mappings/Lazy Basics|Lazy Basics]]
 
|up=[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Basic Mappings|Basic Mappings]]}}
 
|up=[[EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Basic Mappings|Basic Mappings]]}}

Revision as of 13:11, 15 June 2010

Default Conversions and Converters

EclipseLink defines the following converter annotations (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:

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: DRAFT
Other versions...