Skip to content

HHH-20715 HbmXmlTransformer does not generate mapped-superclass for entities with inherited members#13107

Open
dreab8 wants to merge 2 commits into
hibernate:mainfrom
dreab8:HHH-20715
Open

HHH-20715 HbmXmlTransformer does not generate mapped-superclass for entities with inherited members#13107
dreab8 wants to merge 2 commits into
hibernate:mainfrom
dreab8:HHH-20715

Conversation

@dreab8

@dreab8 dreab8 commented Jul 24, 2026

Copy link
Copy Markdown
Member

[Please describe here what your change is about]


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.



Please make sure that the following tasks are completed:
Tasks specific to HHH-20715 (Bug):

  • Add test reproducing the bug
  • Add entries as relevant to migration-guide.adoc OR check there are no breaking changes

https://hibernate.atlassian.net/browse/HHH-20715

dreab8 and others added 2 commits July 24, 2026 11:22
…ntities with inherited members

When an entity maps properties whose Java member is declared on a plain
superclass (not a mapped entity), the transformer now generates a
<mapped-superclass metadata-complete="true"> for that superclass and
moves the inherited attributes from the entity to the mapped-superclass.
Unmapped superclass properties are declared as <transient/>.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

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