title: Execute a method once every transaction begins inside methods annotated with spring - @Transactional
body: <p>I want to make a database call before every method within my Spring application annotated with <strong><em>@Transactional</em></strong> started executing transaction.  </p>
  
  <p>There are few requirements for this: </p>
  
  <ol>
  <li>This database call has to be part of the actual transaction that is about to begin. </li>
  <li>The database connection used for the Transaction has to be same to be used for this database call and should setup some database data before 'real' transaction begins. </li>
  </ol>
  
  <p>Is there something that Spring supports to achieve this goal ? One way I am thinking is to write own Aspect cloning more or less all Transactional code as is. Other way is to write Aspect. Not sure if there are more ways. </p>