Well, my project was using EJB and JPA (with Hibernate), but I had to switch to Spring.
Everything was working well before that. The EJB used to inject the EntityManager, controled the transaction, etc.
Ok, when I switched to Spring, I had a lot of problems because I'm new on Spring. But after everything
…