JPA requires that the value returned by ManagedType#getAttribute() is the same as the one where it has been declared, in this case is the generic type. It seems the problem is caused by a workaround required for EclipseLink and probably it should just be skipped for Hibernate. |