Skip to content

Conversation

@yrodiere
Copy link
Member

@yrodiere yrodiere commented Jun 12, 2025

  • HHH-19532: Add unwrap() method to StatelessSession/SharedSessionContract
  • HHH-19531: Jakarta Data implementation casts StatlessSession to *Implementor interfaces

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.


yrodiere added 3 commits June 12, 2025 10:59
…on/MutationSpecification

Because casts can fail on session proxies, e.g. SessionLazyDelegator, or
Spring's session proxies, or Quarkus'.
@yrodiere yrodiere changed the title HHH-19531 + HHH-19532 Add unwrap() method to StatelessSession/SharedSessionContract and use it instead of casts in Jakarta Data implementation casts StatlessSession Data implementation HHH-19531 + HHH-19532 Add unwrap() method to StatelessSession/SharedSessionContract and use it instead of casts in Jakarta Data implementation Jun 12, 2025
@yrodiere
Copy link
Member Author

Backporting to 7.0 here: #10314

@yrodiere
Copy link
Member Author

I confirmed this fixes the problem we've been having in Quarkus, see quarkusio/quarkus#48348.

Merging.

@yrodiere yrodiere merged commit 3d89260 into hibernate:main Jun 12, 2025
25 checks passed
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