Ability to use parametrized type as AttributeConverter type parameter

Description

Implementations of AttributeConverter<X<Z>, Y> fail in Hibernate 4.3.0.Final (with hibernate-jpa-2.1-api 1.0.0.Final).

The following declaration fails:

But this one works:

The exception is

And it occurs occurs in AttributeConverterDefinition.java:67:

where the real type is ParameterizedTypeImpl, probably because Set<Category> is more complex than just Set.

Environment

Java SE 7, Tomcat 7.0.47, MySQL 5.6

Assignee

Steve Ebersole

Reporter

A

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure