MappingException occurs when a custom enum type is applied to an audited property.

Description

Lets assume a custom extended implementation of EnumType is at play here.
For this example, no methods need to be overridden; just a custom type name used.

Then the entity definition:

This would generate a MappingException when the HBM mapping was being sent from Envers to ORM because the the type parameters being provided by Envers to ORM were incorrect, forcing the code path to take a branch that wasn't compatible with HBM.

In short the type definition was being generated something like:

The expected result should be

Environment

None

Status

Assignee

Chris Cranford

Reporter

Chris Cranford

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure