Skip to content

Conversation

@cigaly
Copy link
Contributor

@cigaly cigaly commented Sep 1, 2025

Jira issue HHH-19747

When entity annotated with @Audited contains property of enum type that contains field annotated with @EnumeratedValue, MappingException with message “Could not resolve named type : convertedBasicType…” is thrown.

Proposed solution is changing org.hibernate.mapping.BasicValue#interpretExplicitlyNamedType to handle names starting with
"convertedBasicType" in a same way as those starting with "basicType".


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


Copy link
Member

@mbellade mbellade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

… enum type with field annotated with @EnumeratedValue
…lyNamedType to handle names starting with "convertedBasicType"
@cigaly cigaly force-pushed the HHH-19747-Hibernate_Envers_can_not_handle_@EnumeratedValue_annotation branch from 0bd588e to df8223e Compare September 1, 2025 11:34
@cigaly
Copy link
Contributor Author

cigaly commented Sep 1, 2025

There was no proper cleanup after test case success, and that caused org.hibernate.orm.test.envers.performance.EvictAuditDataAfterCommitTest to fail. This is now fixed.

@mbellade mbellade merged commit 100114e into hibernate:main Sep 3, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants