Hibernate version: 3.0.5
Full stack trace of any exception that occurs:
none
Name and version of the database you are using:
MySQL 4.1 and 5.0 with InnoDB Tables using Connection/J 3.1.10a
The generated SQL (show_sql=true):
none
Debug level Hibernate log excerpt:
default
I'm using the session.getCurrentSession() on my EJB Statless Session Beans ...
the code are:
Session hsession = getSessionFactory("ECI").getCurrentSession();
Transaction tx = hsession.beginTransaction();
Eam joe = new Eam();
joe.setAge(12);
hsession.save(joe);
IN THIS POINT I CALL THE ANOTHER METHOD IN THE SAME SESSION
THE CODE OF ANNOTHER METHOD IS:
Session hsession2 = getSessionFactory("ECI").getCurrentSession();
Transaction tx2 = hsession2.beginTransaction();
Eam joe2 = new Eam();
joe2.setAge(32);
hsession2.save(joe2);
tx2.rollback();
hsession2.flush();
BACK TO MAIN METHOD
hsession.flush
In the DATABASE , the firt "joe" are inserted on my database , but on call the another method and call the rollback , the FULL TRANSACTION IS ROLLEDBACK
The Hibernate does not supports a subtransactions ?
I call two timer the begin transaction , only the joe2 made be deleted ,
The InnoDB supports sub-transaction savepoint... the hibernate supports ?
|