title: Hibernate + Spring: javax.persistence.TransactionRequiredException: no transaction is in progress
body: <p>I'm currently setting up a project with Spring and Hibernate. After several other problems i got the next problem :P</p>
  
  <p>Anyway. When call <code>entityManager.flush()</code> I get an exception: <code>javax.persistence.TransactionRequiredException: no transaction is in progress</code>.</p>
  
  <p>I have annotated my class with <code>@Transactional</code>but it's still not working. </p>
  
  <p>I read serval threads here where people had a similar problem, but the solution was always <code>&lt;tx:annotation-driven transaction-manager="transactionManager" /&gt;</code>. But I already have this configuration. </p>
  
  <p>I am not sure what code or files I should provide you, so you can find the whole project here: 
  <a href="https://drive.google.com/file/d/0B7Exc4dHICl-UDN3ZEJnbS1FZFk/edit?usp=sharing" rel="nofollow">https://drive.google.com/file/d/0B7Exc4dHICl-UDN3ZEJnbS1FZFk/edit?usp=sharing</a></p>
  
  <p>Thank you in advance. </p>