EclipseLink: autoApply Converters Are Not Applied To Attributes Declared In Entity Class With Primitive Types (Doc ID 2299530.1)

Last updated on AUGUST 23, 2017

Applies to:

Oracle TopLink - Version 12.2.1.0.0 to 12.2.1.3.0 [Release 12c]
Information in this document applies to any platform.

Symptoms

When converters are configured using annotation @Converter(autoApply=true), the values
written to the database are not converted if it is a simple type (int or boolean).

This issue is also described in:
Bug 443546 - Converter autoApply does not work for primitive types
and marked as fixed in EclipseLink 2.6.0.

But the issue can be replicated in WLS 12.2.1.2.0 (with EclipseLink 2.6.x) also.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms