-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Hibernate 6.6.1.Final issues with .hbm.xml configuration
Hibernate 6.6.1 is gradually phasing out XML configuration, and support for .hbm.xml seems to be encountering regressions. Specifically, Hibernate mistakenly interprets methods like getRolesAsString() as entity properties, triggering errors due to the absence of a corresponding setter. Attempts to resolve this with @transient were unsuccessful. As a temporary fix, we've renamed methods like getRolesAsString() to rolesAsString() to avoid them being treated as bean properties. We plan to refactor these entities soon, replacing the .hbm.xml configuration with JPA annotations for better compatibility with Hibernate 6.x.
- Loading branch information
Showing
6 changed files
with
19 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters