-->
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.  [ 2 posts ] 
Author Message
 Post subject: executing DDL STATMENTS THROUGH
PostPosted: Fri Feb 06, 2009 5:05 am 
Newbie

Joined: Tue Jan 06, 2009 5:03 am
Posts: 7
Hi All,


Can any one please answer my following questions:-

1. I want to excute DDL(creating a table). How can I do this through hibernate.

2. Is table creation will be rollback in case transaction rollback.

3. If it is not rollback then the updation done before table creation will be rollback or not.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 06, 2009 9:38 am 
Expert
Expert

Joined: Fri Jan 30, 2009 1:47 am
Posts: 292
Location: Bangalore, India
Quote:
1. I want to excute DDL(creating a table). How can I do this through hibernate.

DDL can be executed using SchemaUpdate. But I dont think this is going to be much help for you.


Quote:
2. Is table creation will be rollback in case transaction rollback.

No DDLs are not rolled back


Quote:
3. If it is not rollback then the updation done before table creation will be rollback or not.

No once you submit a DDL it will cause a transaction commit also.

_________________
Regards,
Litty Preeth


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

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.