Skip to content
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

HHH-19324 - Switch tests using hbm.xml to use mapping.xml #9956

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sebersole
Copy link
Member

@sebersole sebersole commented Apr 3, 2025

HHH-19324 - Switch tests using hbm.xml to use mapping.xml
HHH-19310 - Simplified declaration of type for basic mappings in XML

This is preliminary work which is converting tests using hbm.xml mappings to instead use mapping.xml and addressing gaps. Ultimately this PR will get merged into main (7.x).

Once all tests have been converted and gaps addressed (which just might mean Jira created for thre moment), we can start actually removing the code for applying hbm.xml - though that will be 8.x specific


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.


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

* Wraps the result of {@linkplain #determineAttributeJavaType} in a {@linkplain ClassTypeDetailsImpl}
* Handles {@code <id/>}, {@code <basic/>}, {@code <tenant-id/>}.
*/
private static TypeDetails determineAttributeJavaTypeDetails(

Check notice

Code scanning / CodeQL

Confusing overloading of methods Note

Method DynamicModelHelper.determineAttributeJavaTypeDetails(..) could be confused with overloaded method
determineAttributeJavaTypeDetails
, since dispatch depends on static types.
// explicit <target/>
final String target = jaxbBasicMapping.getTarget();
if ( isNotEmpty( target ) ) {
final SimpleTypeInterpretation simpleTypeInterpretation = SimpleTypeInterpretation.interpret( target );

Check notice

Code scanning / CodeQL

Unread local variable Note

Variable 'SimpleTypeInterpretation simpleTypeInterpretation' is never read.
* Handles {@code <any/>}, {@code <many-to-any/>}.
*/
private static TypeDetails determineAttributeJavaTypeDetails(
JaxbAnyMapping jaxbAnyMapping,

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'jaxbAnyMapping' is never used.
HHH-19310 - Simplified declaration of type for basic mappings in XML
@sebersole sebersole changed the title HHH-17503 - Remove support for hbm.xml mappings HHH-19324 - Switch tests using hbm.xml to use mapping.xml Apr 7, 2025
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.

1 participant