Support specifying an AttributeConverter class as a @ColumnResult#type

Description

JPA says this is not supported. However it does not explicitly say it is not supported - it just "strongly implies" that it should be the column's "JDBC type" (the type of the column value in the ResultSet) in both the spec and its Javadoc. E.g.,

However this is useful, for example, when you are selecting (@ColumnResult) as, e.g. a String.class, but want to use it as an argument of a ConstructorResult which is a converted value. We could handle, e.g.:

We could also implement "easy button" support for cases where we have a {ColumnResult with a #type of String or int as the "JDBC type" used as an argument to a ConstructorResult where the argument on the constructor is an enum. This would leverage our @Enumerated support.

Environment

None

Assignee

Unassigned

Reporter

Steve Ebersole

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Major
Configure