Top Description Methods
org.eclipse.persistence.annotations

public @Interface MapKeyConvert

extends Annotation
Annotations
@Target:METHOD, FIELD
@Retention:RUNTIME
Imports
java.lang.annotation.Retention, .Target

The MapKeyConvert annotation specifies that a named converter should be used with the corresponding mapped attribute key column. The MapKeyConvert 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 @Converter annotation.
Author
Guy Pelletier
Since
EclipseLink 1.2
See Also
org.eclipse.persistence.annotations.Converter, org.eclipse.persistence.annotations.ObjectTypeConverter, org.eclipse.persistence.annotations.TypeConverter, org.eclipse.persistence.mappings.converters.SerializedObjectConverter, org.eclipse.persistence.mappings.converters.ClassInstanceConverter

Method Summary

Modifier and TypeMethod and Description
public String
value()

(Optional) The name of the converter to be used.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String value()

(Optional) The name of the converter to be used.