Add support in Envers for converted (AttributeConverter) attributes

Description

Without a JPA 2.1 Converter, the Party entity below fails at Configuration.buildSessionFactory() as it should, since Hibernate doesn't know what to do with the Name class:

The exception is:

To fix this, I then add this converter:

And the exception now changes to:

This is now failing at the Envers auditing table for the Party entity. Note that History_Party is the name of the audit table, as choosen by config.setProperty("org.hibernate.envers.audit_table_prefix", "History_").

The complete stacktrace is:

Environment

MySQL 5.6

Attachments

Assignee

Steve Ebersole

Reporter

Marcelo Glasberg

Fix versions

Labels

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

Affirmative

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure