HbmXmlTranslator: Various bug fixes#13105
Closed
dreab8 wants to merge 14 commits into
Closed
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…-to-one instead of LAZY Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…tion-type attribute Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…tions causing eager initialization In hbm.xml, fetch="join" and lazy="true" are independent — the collection stays lazy and uses join fetching only when initialized. In orm.xml, fetch-mode="JOIN" maps to @fetch(FetchMode.JOIN) which forces eager loading. Since a lazy collection uses a separate SELECT regardless of fetch style, dropping fetch-mode="JOIN" preserves the same runtime behavior. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… many-to-one associations Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…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>
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


HHH-20699 HbmXmlTransformer sets EAGER fetch on composite-id key-many-to-one instead of LAZY
HHH-20703 HbmXmlTransformer does not resolve typedef alias for collection-type attribute
HHH-20709 HbmXmlTransformer generates fetch-mode=JOIN for lazy collections causing eager initialization
HHH-20711 HbmXmlTransformer does not support composite-id with id-class
HHH-20712 HbmXmlTransformer does not transfer on-delete="cascade" for many-to-one associations
HHH-20715 HbmXmlTransformer does not generate mapped-superclass for entities with inherited members
HHH-20717 xml elements are parsed but never processed
HHH-20717 HbmXmlTransformer does not set the required rename attribute for
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-20717 (Bug):
migration-guide.adocOR check there are no breaking changesTasks specific to HHH-20715 (Bug):
migration-guide.adocOR check there are no breaking changesTasks specific to HHH-20712 (Bug):
migration-guide.adocOR check there are no breaking changesTasks specific to HHH-20711 (Bug):
migration-guide.adocOR check there are no breaking changesTasks specific to HHH-20709 (Bug):
migration-guide.adocOR check there are no breaking changesTasks specific to HHH-20703 (Bug):
migration-guide.adocOR check there are no breaking changesTasks specific to HHH-20699 (Bug):
migration-guide.adocOR check there are no breaking changes