-->
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: Write SQL statements in a file and not to database
PostPosted: Tue Mar 17, 2009 11:04 am 
Newbie

Joined: Mon Mar 02, 2009 6:42 am
Posts: 6
Hibernate version:
Hibernate 3.0

Hi,

is there a driver or an special configuration, that Hibernate not connects to a database and writes its sql statement to an ASCII file?

Greets
Prinzy


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 17, 2009 6:22 pm 
Beginner
Beginner

Joined: Wed Oct 03, 2007 4:10 am
Posts: 46
You can use this in log4j xml configuration

<category name="org.hibernate.type">
<priority value="trace"/>
</category>

<category name="org.hibernate.SQL">
<priority value="debug"/>
</category>


if you want to log into a file or sysout.


or if you want to use a file as a database you can try hsqldb.


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.