Hi all!
New to Hibernate, trying to get it running with my project, however, when setting the Environment.HBM2DDL_auto (hibernate.hbm2ddl.auto) property to "create" (i.e. because of fast-changing tables I want to have auto-creation on deploy to server) I get a SQLException "Cannot commit during managed transaction";
It seems the hbm2ddl_auto commits after creating the tables, seems reasonable, but SybaseASA (the DB I'm using for development) commits "create table" statements automatically, so there wouldn't be a need to do so manually, however, the app-server will of course complain that a commit is issued on a managed transaction.
Any way to get around this and auto-create tables within an AS?
Hibernate 3.0a, JBoss 4
kind regards,
Messi
|