How to execute custom sql code in every transaction managed by spring DataSourceTransactionManager?
问题 Consider situation in which we have tons of java DAO classes managed by Spring. Every method defined in those beans executes SQL code in Spring's Datasource transaction, defined by annotation on a method. Now we have a requirement to run some custom code just before target execution of mentioned methods, this code MUST be executed in the same transaction as defined by annotation on target method. Update based on R4J comment: My proxy for DAO calls which should call procedure PR_Adm_Set_Usr in