Skip to content

HHH-19606 allow resource accessor method of type StatelessSession in Spring #10522

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

Merged
merged 1 commit into from
Jul 13, 2025

Conversation

gavinking
Copy link
Member

@gavinking gavinking commented Jul 13, 2025

this is a partial fix: need to consider other session types eventually

[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.


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

…Spring

this is a partial fix: need to consider other session types eventually
Comment on lines +899 to +902
final String sessionType =
jakartaDataRepository && springInjection
? SPRING_OBJECT_PROVIDER + '<' + returnType + '>'
: returnType;

Check notice

Code scanning / CodeQL

Possible confusion of local and field Note

Potentially confusing name: method
addDaoConstructor
also refers to field
sessionType
(as this.sessionType).
@gavinking gavinking merged commit f6af272 into hibernate:main Jul 13, 2025
26 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