Use the Converter area in the JPA Details view to specify a way to modify data value(s) during the reading and writing of a mapped attribute.
Property | Description | Default | Available for Entity Type |
---|---|---|---|
Converters |
Click Add and use the Add Converter dialog to create a new converter.
|
||
Name |
The |
||
Class |
The class of your converter. This class must implement the Appears for Custom and Struct converters only. |
||
Data type |
The type stored in the database. Appears for Object Type and Type converters only. |
||
Object type |
The type stored on the entity. Appears for Object Type and Type converters only. |
||
Conversion values |
The array of conversion values (instances of Appears for Object Type converters only. |
||
Default object value |
Set the value of this attribute to the default object value. Note that this argument is for dealing with legacy data if the data value is missing. Appears for Object Type converters only. |
Related reference
"Converter" in Java Persistence API (JPA) Extensions Reference for EclipseLink
http://eclipse.org/eclipselink/documentation/2.4/jpa/extensions/a_converter.htm