You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fact that annotations are not inherited means that if you are using class-based proxies (proxy-target-class="true") or the weaving-based aspect (mode="aspectj") then the transaction settings will not be recognised by the proxying/weaving infrastructure and the object will not be wrapped in a transactional proxy (which would be decidedly bad).
This is not true. @Transactional is marked as @Inherited. So a subclass that inherits from a superclass marked as @Transactional is not distinguishable from a class that is marked as@Transaction itself.
That sentence in the docs isn't worded very clearly. However, the context of that section is using @Transactional on interface methods: Since Java annotations are indeed not inherited from interfaces, the statement is correct in that context.
I've reworded that sentence to make the interface context clearer.
Eberhard Wolff opened SPR-5322 and commented
Paragraph 9.5.6 "Using
@Transactional
" says:The fact that annotations are not inherited means that if you are using class-based proxies (proxy-target-class="true") or the weaving-based aspect (mode="aspectj") then the transaction settings will not be recognised by the proxying/weaving infrastructure and the object will not be wrapped in a transactional proxy (which would be decidedly bad).
This is not true.
@Transactional
is marked as@Inherited
. So a subclass that inherits from a superclass marked as@Transactional
is not distinguishable from a class that is marked as@Transaction itself.Affects: 1.2 RC1, 1.2 RC2, 1.2 final, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.2.7, 1.2.8, 2.0 M1, 2.0 M2, 2.0 M3, 2.0 M4, 2.0 M5, 2.0 RC1, 2.0 RC2, 2.0 RC3, 2.0 RC4, 2.0 final, 2.0.1, 2.0.2, 1.2.9, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7, 2.0.8, 2.0.9, 2.1 M1, 2.1 M2, 2.1 M3, 2.1 M4, 2.5 RC1, 2.5 RC2, 2.5 final, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.5.5, 2.5.6
The text was updated successfully, but these errors were encountered: