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 section Data Access, paragraph 1.5.8. Advising transnational operations contains incorrect pointcut expressions: "execution(!void x.y..Service.(..))" and "execution(\* x.y..Service.(..))" at 3 places as shown in images that is attached.
The correct poincut expressions should be: "execution(!void x.y..\*Service.\*(..))" and "execution(\* x.y..\*Service.\*(..))" accordingly.
h4.
I think that aforementioned section, paragraph 1.5.4. Configuring different transnational semantics for different beans also contains wrong pointcut expression : "execution(\* x.y.service.\*Service.\*(..))" because we point to some class that ends with Service in packet x.y.service, but actually we want to point to any packet that have a root - x.y.service. So the correct pointcut expression should be: "execution(\* x.y.service..\*Service.\*(..))"
Sviatoslav Hryb opened SPR-16549 and commented
The section Data Access, paragraph 1.5.8. Advising transnational operations contains incorrect pointcut expressions:
"execution(!void x.y..Service.(..))"
and"execution(\* x.y..Service.(..))"
at 3 places as shown in images that is attached.The correct poincut expressions should be:
"execution(!void x.y..\*Service.\*(..))"
and"execution(\* x.y..\*Service.\*(..))"
accordingly.h4.
I think that aforementioned section, paragraph 1.5.4. Configuring different transnational semantics for different beans also contains wrong pointcut expression :
"execution(\* x.y.service.\*Service.\*(..))"
because we point to some class that ends withService
in packet x.y.service, but actually we want to point to any packet that have a root - x.y.service. So the correct pointcut expression should be:"execution(\* x.y.service..\*Service.\*(..))"
Affects: 5.0.4
Reference URL: https://docs.spring.io/spring/docs/5.0.4.RELEASE/spring-framework-reference/data-access.html#spring-data-tier
Attachments:
Issue Links:
@Transactional
with AspectJReferenced from: commits ff818d5
The text was updated successfully, but these errors were encountered: