Support for AttributeConverters as CDI beans

Description

This is a new requirement defined by JPA 2.2.

Again this work is done on 6.0, just need to back-port it although it may be simpler to just copy-port the ManagedBean/ManagedBeanRepository stuff and do the calls by hand since so much is different in that area in 6

Also, consider carefully the following snippet from JPA 2.2, 3.8 Type Conversion of Basic Attributes:

The persistence provider is only required to support CDI injection into attribute converters in Java EE
container environments. If CDI is not enabled, the persistence provider must not invoke attribute
converters that depend upon CDI injection

I read this to mean that it should not be an error (ignore silently) if the application defines AttributeConverters relying on CDI injection, but CDI is not available. But how can we know that an AttributeConverter "depend(s) upon CDI injection"?

Activity

Show:
Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created November 28, 2017 at 3:41 PM
Updated May 22, 2018 at 11:51 PM
Resolved December 16, 2017 at 12:26 AM