title: Is the CrudRepository .delete() method transactional?
body: <p>When using Spring-data it is possible to extend the <a href="http://docs.spring.io/spring-data/commons/docs/current/api/org/springframework/data/repository/CrudRepository.html" rel="noreferrer">CrudRepository</a>.</p>
  
  <p>How does this Repositories <code>.delete()</code> method work "under the hood"?</p>
  
  <p>Also, is this method <code>Transactional</code>? If this is the case, is there any need to use <code>@Transactional</code> annotations when using <code>Spring-data</code>.</p>
  
  <p>e.g is <code>@Transactional</code> needed here? :</p>
  
  <p><strong>Extending CrudRepository:</strong></p>
  
  <pre><code>public interface PersonRepository extends CrudRepository&lt;Person, Integer&gt; {
  
  }
  </code></pre>
  
  <p><strong>Using delete method in service class:</strong></p>
  
  <pre><code> @Transactional
   public void deletePerson(Person person) {
  
          personRepository.delete(person);
      }
  </code></pre>
  
  <p><strong>Edit:</strong> How would <code>@Transactional</code> work here?</p>
  
  <pre><code> @Transactional
       public void deletePersonAndTable(Person person, Table table) {
  
              personRepository.delete(person);
  
              tableRepository.delete(Table);
  
          }
  </code></pre>