Pojo « Transaction « JPA Q&A





1. Manual Transactions with Seam POJO    stackoverflow.com

What is best practice for using Database Transactions with Seam when not using EJBs - ie. when deploying Seam as a WAR? By default Seam JavaBeans support Transactions. I can annotate a ...

2. Problem with EJB + POJO Helpers + EntitiyManager    stackoverflow.com

I'm working with EJBs...I do the following and I don't know why the injected EntityManager is not working as one might expect.

  1. EJB1 calls a method on EJB2 that ...

3. Turn on Autocommit for simple Pojo data objects?    stackoverflow.com

In my application I have hidden the underlying storage objects behind interfaces, allowing me to switch storage at will. The issue is that when testing hibernate it seems that Hibernate is very ...

4. JPA synch/comit error of a Pojo DTO even if I DO NOT want to save it    stackoverflow.com

Due to lack of key words to capture this scenario, let me just proceed to describing it. Take note the classes have been simplified (and are more complex in reality, the ...

5. Transactions over database ops AND normal POJO methods    forum.hibernate.org

I have a small method that looks like this: Account account = (Account)accountDAO.findByUserID(userID); account.depositAmount(amount); accountDAO.store(account); The .store() method may sometimes throw MyIOException (when database access fails), and in these cases I would like to rollback this whole code snippet ie I would like to undo my call to the depositAmount() method. Can I do this somehow using Hibernate and/or Spring? If ...