roll back « Transaction « JPA Q&A





1. Will CompassGps roll back if the transaction is rolled back?    stackoverflow.com

If CompassGps mirroring is used with Hibernate, what happens if the database transaction rolls back? Will the changes to the index be rolled back (assuming file store for the index)? It ...

2. What happens if you don't roll back a transaction in Hibernate?    stackoverflow.com

Everything I read about Hibernate states that you must roll back a transaction and close the session when an error occurs, and there's usually some variation of the following code (taken ...

3. Can I roll back a JTA transcation after I commit it?    stackoverflow.com

I have a JTA transcation which I commit. Can I roll it back after I commit? If yes, how? I have following situation.

  1. I have a backend layer which updated ...

4. Rolling back the WHOLE transaction?    forum.hibernate.org

I'm experiencing a very weird problem using Hibernate 2.0 in a Session bean environment (JBoss and eventually WebLogic). I'm using a DataSource enlisted with JTA. I have some nested objects (say, Person with a list of Address objects attached). If I populate all required fields (e.g. not-null in the database), everything works fine. However, if I omit a required field from ...

5. Transaction not rolling back    forum.hibernate.org

hi, i was recently having some trouble with a many-to-many relationship and while i fixed this problem, during testing i noticed that my transactions were not being rolled back on error. here are the mapping files i was using, notice that both ends of the many-to-many relationship are set inverse="false" resulting in two inserts into the join table. Code: ...

6. websphere always rolling back transactions    forum.hibernate.org

Hi, I'm using Hibernate 2.1 with websphere 5 and I have the following trouble: When saving a new object, the transaction commits ok but then Websphere rolls back the transaction. Here is the websphere log: -------------------- [07/06/04 18:43:25:969 CEST] 2030b532 WebAppRequest d Checking UserTransaction for Incomplete transactions [07/06/04 18:43:25:969 CEST] 2030b532 UserTransacti > com.ibm.ejs.jts.jta.UserTransactionImpl.getStatus [07/06/04 18:43:25:969 CEST] 2030b532 CurrentImpl > get_status ...

7. Transaction Not Rolling Back    forum.hibernate.org

Hello I am using Spring 1.1. with Hibernate 2. The Spring transaction does not roll back when used in conjunction with Hibernate. I'm aware that this may be a Spring issue and is therefore not completely relevant but it may be Hibernate that is causing my problem. The contents of my Spring configuration file are as follows:

8. transaction could not be rolled back!    forum.hibernate.org

Hibernate version: 2.1.7c Name and version of the database you are using: Oracle 10g IDE: JDeveloper 10g (9.0.5.2) EJB Container: JDeveloper Embedded OC4J Hi, I'm not sure whether the problem is Hibernate's bug or not, I have following properties in hibernate.cfg.xml jdbc/myDataSource net.sf.hibernate.transaction.OrionTransactionManagerLookup net.sf.hibernate.transaction.JTATransactionFactory net.sf.hibernate.dialect.Oracle9Dialect Inside a CMT (container managed transaction) session bean with transaction attribute REQUIRED ...

9.  not rolling back entire transaction    forum.hibernate.org

I have a bi-directional mapping based on primary keys. Class A is mapped to table A and configured to cascade updates to Class B, which is mapped to table B. This works fine when there are no exceptions. The update cascades successfully. However, if the update to A instance succeeds, but the update to B instance generates an exception at ...





10. Transaction Not Rolling Back    forum.hibernate.org

Hello Hibernate Users, I am trying to execute a transaction using Hibernate that updates two databases. Suppose that inside my UserTransaction I update my first database, then (in the same UserTransaction) while I update my second database the entry in the first database gets deleted. Ideally the second database should not be updated and the whole UserTransaction should roll back. However ...

11. Transaction Not Rolling Back    forum.hibernate.org

If anyone has a working example of a transaction rolling back properly could they please let me know. I only need rollback to work for one transaction updating one database. All the examples on the web and in the Hibernate Documentation seem to follow this basic pattern: Code: Session sess = factory.openSession(); Transaction tx = null; try { tx = sess.beginTransaction(); ...

12. if i don't roll-back a transaction will i lose the Session    forum.hibernate.org

hi, I am using a begin transaction and commit transaction if the commit fails i am not calling the rollback() method. if the commit fails will the entire Session for the entire application will be closed. or the session will be there for using it in other methods in the application. This is my code example, public void saveBankValue( BankValue persistentInstance) ...