-
Notifications
You must be signed in to change notification settings - Fork 38.4k
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
Clarify documentation for @Transactional on interfaces #23538
Comments
@jhoeller, I've tentatively assigned this to you. |
Hi. Anyone can explain why this documentation fragment is no longer relevant? |
@DcortezMeleth The documentation fragment is accurate. If you're using class-based proxies or AspectJ, the I believe the original poster interpreted the last sentence (perhaps the "which would be decidedly bad" part) to mean that an error would be thrown if you use
with the danger spelled out:
|
We do detect interface-annotated methods with CGLIB proxies as of #18894 now which needs to be reflected in the docs. |
Affects: Spring framework version 5
The Spring Reference Manual states the following.
But I tried an example using CGLIB proxy, and annotate
@Transactional
on an interface. I expect an error. But it does not throw any error, to my surprise. I guess Spring documentation needs to be updated, maybe?We posted our code example here in coderanch.com/forum and one staff recommends me to ask Spring community. The detail code example and discussion is here. Please take a look: https://coderanch.com/t/714204/frameworks/Spring-Transactional-inheritance
Thanks.
The text was updated successfully, but these errors were encountered: