-->
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: Can I save the generated SQL?
PostPosted: Wed Jan 12, 2005 4:52 pm 
Newbie

Joined: Wed Jan 12, 2005 4:46 pm
Posts: 1
Hibernate version:
2.1.7

Name and version of the database you are using:
Oracle 9i


I have set show_sql=true, so I can see the SQL that is being generated when I insert objects into my database. Is there a way to tell Hibernate to write all of the SQL statements that it uses to do the inserts to a file?

Thanks for the help,
-Jen


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 12, 2005 8:15 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Not really. You maybe able to setup a special log4j appender to do this for you.


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.