Annotation Type SerializedConverter
-
@Target({TYPE,METHOD,FIELD}) @Retention(RUNTIME) @Repeatable(SerializedConverters.class) public @interface SerializedConverterA SerializedConverter is used to serialize an object's value into a database binary, character, or XML field. This annotation allows a named converter that can be used in mappings. A converter must be be uniquely identified by name and can be defined at the class level and can be specified within an Entity, MappedSuperclass and Embeddable class. The usage of a SerializedConverter is always specified via the Converter annotation and is supported on a Basic, or ElementCollection mapping.- See Also:
Converter,Serializer- Author:
- James Sutherland
- Since:
- EclipseLink 2.6
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Stringname(Required) Name this converter.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Class<? extends Serializer>serializerClassThe serializer class to be used.java.lang.StringserializerPackageAllows a package name to be passed to the serializer.
-
-
-
-
serializerClass
java.lang.Class<? extends Serializer> serializerClass
The serializer class to be used. This class must implement the org.eclipse.persistence.sessions.serializers.Serializer interface.- Default:
- org.eclipse.persistence.sessions.serializers.JavaSerializer.class
-
-