spring-transactions
withTransaction Doesn't Do Rollbacks Correctly
In my Person controller Delete action, I expect that if an DataIntegrityViolationException occurs, then the associated Authority records would be restored, but they are not. I really shouldn\'t even n[详细]
2023-02-13 11:41 分类:问答Spring start a transaction with object created by new
I have a POJO class with a method annotated with @Transactional public class Pojo { @Transactional public void doInTransaction() {[详细]
2023-02-05 11:35 分类:问答Manual recursive delete throws "deleted instance passed to merge" in hibernate
NOTE: I am using a J2EE Spring MVC + Hibernate with both using annotations for this. I have a file system modeled in hibernate with a hierarchy of folders and files in these folders.The folders each[详细]
2023-02-03 17:26 分类:问答Spring and Hibernate suddenly set the transaction to readonly
We have an application running on JBoss 4.2.3, using Spring 2.5.2 and Hibernate 3.2.6.ga. This is running on Linux JEE01 2.6.16.60-0.54.5-smp, using its own user. Writing to a Oracle 10G database on a[详细]
2023-01-31 05:04 分类:问答Create a local transaction inside a Spring JTA transaction
I want to execute a stored procedure inside a JTA transaction, but have to use a local transaction instead for some reason. I\'ve create a pointcut, using a local transaction manager for this, but exc[详细]
2023-01-27 18:16 分类:问答unable to catch DataIntegrityViolationException with wrapped transaction
I\'m using Spring 3 for managing DB transactions. Whenever an exception is raised, I catch the exception and return the corresponding message. But when Spring commits the transaction, the exception is[详细]
2023-01-26 22:33 分类:问答Error inserting new parent-child records in transaction using Spring JDBC
I have 2 tables (Item and Code) with relation one to many(one Item can have many Codes - this is implemented on db level with foreign key).[详细]
2023-01-26 21:35 分类:问答Grails integration tests and transactions
I don\'t get why this integration test fails. I can get the test to pass by either removing the @Transactional(propagation = Propagation.REQUIRES_NEW) annotation above the service method, OR by settin[详细]
2023-01-24 21:27 分类:问答Spring aop transaction not committing the transaction
I am using Spring 3.0.3, MyBatis 3.0.2 and mybatis-spring 1.0.0 on Apache Tomcat 6.0.29. I have used declarative transactions of spring for transaction management. The issue is that the transactions[详细]
2023-01-21 04:37 分类:问答Setting Up Annotation Driven Transactions in Spring in @Configuration Class
So in the latest version of Spring we are able to use the @Configuration annotation to setup our configurations for Spring. Now in JavaConfig it is possible to use the @AnnotationDrivenTx (@Annotation[详细]
2023-01-16 20:49 分类:问答