New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Envers throws MappingException: Type not supported for auditing #463
Comments
Looking forward to your Pull Request that fixes this issue |
Envers expects (simple) audited types to implement the BasicType interface. This commit changes The ImmutableType to implement BasicType rather than Type. The commit is work in progress: It only applies the change to hibernate-types-55 as a template. If the change is OK, it will be applied to other hibernate-types-* as well. Resolves: vladmihalcea#463
Thanks a lot for considering my suggestion. I created #464 for Incidentally, I noted that the PR also fixes this: |
I'll integrate it after I apply the same login to the new |
Fixed. |
Synopsis
ImmutableType
and its descendants likePostgreSQLHStoreType
are not compatible with Envers.For instance, consider the following
@Audited
Entity:It will cause an
exception upon building the session factory.
Test
A full-fledged test along with explanations can be found here.
Fix
ImmutableType
can be modified to implementBasicType
instead ofType
, as explained here.Suggestion
I can open a PR for applying the above change.
The text was updated successfully, but these errors were encountered: