-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: hbm2ddl auto export with JTA transaction
PostPosted: Fri Oct 08, 2004 10:43 am 
Newbie

Joined: Fri Oct 08, 2004 10:36 am
Posts: 2
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.