-->
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: Does hibernate not log selects?
PostPosted: Fri May 30, 2008 4:57 pm 
Newbie

Joined: Thu May 29, 2008 1:47 pm
Posts: 3
I have both hibernate.show_sql=true in my properties and log4j.logger.org.hibernate.SQL=debug in log4j.properties. I get inserts and updates but no sql is ever logged for a select, even though HibernateTemplate.get is called several times over the course of running.
Am I expecting something that it just doesn't do?

Thanks,
Mike


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 30, 2008 5:24 pm 
Senior
Senior

Joined: Fri Jun 01, 2007 12:41 pm
Posts: 121
Do you have second level cache for this entities that are inserted. SLC keeps the objects in memory, so SQLs are issued if same object is queried again.

Else, ???


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 30, 2008 7:06 pm 
Newbie

Joined: Thu May 29, 2008 1:47 pm
Posts: 3
Hi! Thanks for your reply!

I have all caching disabled in the hibernate properties, including the second level cache. So I should be seeing a SQL query, since it can't be coming from the cache, right?

Thanks,
Mike


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.