Hi,
I'm using Hibernate version 3.2.0.ga with Hibernate Annotations 3.2.1.ga.
We have a requirement to perform multiple operations as seperate transaction (independently).
The database I'm using is Oracle9i.
That is those operations can be partially successful (even if subsequent operation(s) fail, we don't want to rollback).
That is we are trying to implement one-session-multiple-transactions [anti]pattern. I understand THIS IS AN ANTI PATTERN AND SHOULD BE USED ONLY IN EXCEPTIONAL SCENARIOS.
I've read both:
http://www.hibernate.org/42.html and
http://www.hibernate.org/43.html
But could not get any simple workaround.
We do use Spring IOC to instantiate Hibernate sessionFactory bean (using org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean class) and
and transactionManager bean (using org.springframework.orm.hibernate3.HibernateTransactionManager class).
What is the simplest solution to have:
======== Session01_BEGIN=======
begin Transaction01
doOperation01()
end Transaction01
begin Transaction02
doOperation02()
end Transaction02
======== Session01_END======
Hibernate gurus, any help is appreciated.