-->
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.  [ 6 posts ] 
Author Message
 Post subject: Export Schema with hibernatetool + add "commit;"?
PostPosted: Tue Oct 23, 2007 7:22 am 
Newbie

Joined: Tue Oct 23, 2007 7:13 am
Posts: 3
Hi,

I'm working with hibernate and nearly everything works fine. But I have one (small?) problem: I want to export my db schema using the hibernatetool within my ant script for Oracle (works) and add a last line with a commit; statement to the file with the exported schema. Unfortunatly, I don't have an idea how to get this "commit;" at the end of the file. Anyone who can help me? Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 23, 2007 12:49 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
why do you need that when we commit the connection ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 24, 2007 2:16 am 
Newbie

Joined: Tue Oct 23, 2007 7:13 am
Posts: 3
I need the exportet script for the installation of my software so that I can insert some data to the database with a second script as my software needs this data at the DB. Therefor I need the script hibernatetool exports with the commit; at the end.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 24, 2007 3:33 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
so you are extracting the script anyway automatically; can't you just append commit or any other custom statements you want to have?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 24, 2007 5:32 am 
Newbie

Joined: Tue Oct 23, 2007 7:13 am
Posts: 3
Of course I can do it manually - but I want to add it automaticly every time it has been generated.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 24, 2007 7:00 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
that is trivial to do in a ant script or custom task; doesn't make sense for our schemaexport to do an uneccesary commit.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.