title: Differences and cohabitation between Spring and javax.transaction @Transactional annotation
body: <p>I'm currently dealing with a codebase where the business code uses the <code>@Transactional</code> annotation from the <code>javax.transaction</code> package. However, this software also uses spring-data JPA repositories, which uses the Spring <code>@Transactional</code> annotation. Since we discovered this, we switched to using Spring <code>@Transactional</code> annotation on all newer business code.</p>
  
  <p>My questions are: </p>
  
  <ul>
  <li>Does using both different annotation cause any kind of problem ? I'm
  guessing not because we discovered the problem during a code
  refactoring but we didn't notice any defect related to this problem. However, I prefer to be sure</li>
  <li>What's the difference in behavior between the two annotations ?</li>
  </ul>
  
  <p>Thanks in advance.</p>