Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


org.eclipse.persistence.annotations
Annotation Type Convert


@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface Convert

The Convert annotation specifies that a named converter should be used with the corresponding mapped attribute. The Convert annotation has the following reserved names: - serialized: Will use a SerializedObjectConverter on the associated mapping. When using a SerializedObjectConverter the database representation is a binary field holding a serialized version of the object and the object-model representation is a the actual object - class-instance: Will use an ClassInstanceConverter on the associated mapping. When using a ClassInstanceConverter the database representation is a String representing the Class name and the object-model representation is an instance of that class built with a no-args constructor - none - Will place no converter on the associated mapping. This can be used to override a situation where either another converter is defaulted or another converter is set. When these reserved converters are not used, it is necessary to define a converter to use using the

Since:
Oracle TopLink 11.1.1.0.0
Author:
Guy Pelletier
See Also:
Converter, ObjectTypeConverter, TypeConverter, SerializedObjectConverter, ClassInstanceConverter

Optional Element Summary
 java.lang.String value
          (Optional) The name of the converter to be used.

 

value

public abstract java.lang.String value
(Optional) The name of the converter to be used.
Default:
"none"

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.