Skip Headers

# Using Java

Previous

Next

You can set an `oracle.toplink.converters.SerializedObjectConverter` on any instance of `oracle.toplink.mappings.foundation.AbstractCompositeDirectCollectionMapping` using `AbstractCompositeDirectCollectionMapping` method `setValueConverter` as Example: Configuring a SerializedObjectConverter in Java shows.

Configuring a SerializedObjectConverter in Java

    // Create SerializedObjectConverter instance
    SerializedObjectConverter serializedObjectConvter = new SerializedObjectConverter();

    // Set SerializedObjectConverter on ArrayMapping
    ArrayMapping arrayMapping = new ArrayMapping();
    arrayMapping.setValueConverter(serializedObjectConvter);
    arrayMapping.setAttributeName("responsibilities");
    arrayMapping.setStructureName("Responsibilities_t");
    arrayMapping.setFieldName("RESPONSIBILITIES");
    orDescriptor.addMapping(arrayMapping);