You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Guenter Windsperger (Jira)" <ji...@apache.org> on 2026/01/14 19:02:00 UTC

[jira] [Created] (OPENJPA-2944) Wrong numeric type conversion when using AttributeConverter

Guenter Windsperger created OPENJPA-2944:
--------------------------------------------

             Summary: Wrong numeric type conversion when using AttributeConverter
                 Key: OPENJPA-2944
                 URL: https://issues.apache.org/jira/browse/OPENJPA-2944
             Project: OpenJPA
          Issue Type: Bug
          Components: jdbc
    Affects Versions: 4.1.0
         Environment: Postgresql
            Reporter: Guenter Windsperger


When using an AttributeConverter the resulting expression is always of type `bytea` instead of the respective declared converter type e.g. bigint for Long.

This can be observed with the existing Test `TestExternalValues`, where both UUID properties, one converted with the custom Externalizer API, the other with the standard Converter API, produce different column types.

I am happy to provide some PR if someone could point me to the potential root cause.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)