Nope, i have two databases in informix that were created using the nontransactional option, (they dont use transactions even if you want) so everything is autocommit and you cant roll back. But it seems that hibernate has problems dealing with this kind of schema.
She will remember your heart when men are fairy tales in books written by rabbits.<br /> As long as there is duct tape... there is also hope.
posted 14 years ago
I don't know how to keep Hibernate from calling commit() other than to create your own transaction and transaction factory classes. That would allow you to intercept the transaction calls and skip them.
See the source to org.hibernate.transaction.JDBCTransactionFactory and JDBCTransaction as examples.
An entry in the Hibernate configuration file would tell Hibernate to use your factory: