I am actually using the native tag in the hbm.xml. I have also noticed that the updates are rolled back but objects newly created are not getting rolled back.
It is as though the JDBC connection has auto commit mode set to true though the connection is obtained in JTA transaction. FYI, I am using JOTM transaction mgr implementation, with the Enhydra StandardXADataSource implementation. I have noticed the JDBC connection returned by default has auto mode set to true. Since I am calling Hibernate Session FactoryImpl.openSession() I am expecting Hibernate to get the JDBC connection. Maybe this is an Enhydra issue.
|