You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "rzo1 (via GitHub)" <gi...@apache.org> on 2026/10/05 19:06:27 UTC

[PR] [OPENJPA-2973] Consult the AttributeConverter for null values [openjpa]

rzo1 opened a new pull request, #201:
URL: https://github.com/apache/openjpa/pull/201

   As required by Jakarta Persistence 3.2 an `AttributeConverter` is now consulted for `null` in both directions; previously a null attribute or a null column value bypassed it, so a converter mapping `null` to a column default was never applied. Queries are deliberately unaffected: a `null` in a query still means SQL `NULL` and is never passed through the converter, so `IS NULL` and null parameters keep their previous meaning. Converter implementations must therefore be null-safe — the bundled test converters were not and are fixed — and the migration guide documents both the requirement and the change in stored data; the CDI and direct-cast questions from the review are answered in comments, since the kernel has neither a container hook nor the `jakarta.persistence` dependency.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@openjpa.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [OPENJPA-2973] Consult the AttributeConverter for null values [openjpa]

Posted by "cristof (via GitHub)" <gi...@apache.org>.
cristof merged PR #201:
URL: https://github.com/apache/openjpa/pull/201


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@openjpa.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org