The moose likes Object Relational Mapping and the fly likes Rollback issue with Hibernate in JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "Rollback issue with Hibernate in JBoss" Watch "Rollback issue with Hibernate in JBoss" New topic
Author

Rollback issue with Hibernate in JBoss

Ian Link
Greenhorn

Joined: Oct 13, 2006
Posts: 4
Lets say i have 100 rows to insert and the 100th item has an error (eg a value to big for column). When the commit is executed an exception is thrown and rollback is called. However, the first 99 records are still being persisted to the database and not being rolledback.

I am using an oracle database and running in a JBoss 4.0.2 container using an MBean managed SessionFactory and jboss transaction manager

The code looks like this:

 
 
subject: Rollback issue with Hibernate in JBoss
 
Threads others viewed
How to Configure SSL over Database in Spring?
problems with JDBC transaction in Spring
Question on Transaction Management
MultiDimenaional Array sort
Problem with the Hibernate Cache (I think)
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture