-->
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.  [ 3 posts ] 
Author Message
 Post subject: see query generated in console
PostPosted: Wed Nov 15, 2006 4:35 am 
Beginner
Beginner

Joined: Wed Nov 15, 2006 4:25 am
Posts: 21
Hi Friends

I am beginner of hibernate using H3.0

I want to see how the query generated by the hibernate. Where in hibernate.cfg.xml i speciefied show_sql as true.But it is not showing the generated sql query.Do i need to search in some log files.I configured log4j and it is displaying in console..

Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 15, 2006 6:11 am 
Newbie

Joined: Wed Nov 15, 2006 5:53 am
Posts: 3
yes..you need to have something like this in your log4j.properties

log4j.rootCategory=DEBUG
log4j.category.org.hibernate=DEBUG


Top
 Profile  
 
 Post subject: now its printing the query in console
PostPosted: Wed Nov 15, 2006 1:28 pm 
Beginner
Beginner

Joined: Wed Nov 15, 2006 4:25 am
Posts: 21
Thank you for helping me

Those two lines ease my job.

Thank you. pal.


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