Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

HHH-19747 Hibernate Envers can not handle @EnumeratedValue annotation #10854

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

Open
cigaly wants to merge 2 commits into hibernate:main
base: main
Choose a base branch
Loading
from cigaly:HHH-19747-Hibernate_Envers_can_not_handle_@EnumeratedValue_annotation

Conversation

Copy link
Contributor

@cigaly cigaly commented Sep 1, 2025
edited
Loading

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!

cigaly reacted with thumbs up emoji
... 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
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 reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@mbellade mbellade mbellade approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /