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: The property „hibernate.show_sql“ doesn’t works
PostPosted: Wed Sep 17, 2008 5:53 am 
Newbie

Joined: Wed Sep 17, 2008 5:44 am
Posts: 3
Hi,
I hope someone could help me. I’ve encounterd some problems and wanted to activate the sql output by setting the attribute: hibernate.show_sql to true. But I don’t see any effect. Nothing in the console and nothing in the nhibernate log file.

Maybe someone can explain this to me?

Thanks for your help,
Tobi


if (sessionFactory == null)
{
Configuration nHibernateConfig = new Configuration();
nHibernateConfig.AddAssembly("Entity");
nHibernateConfig.Properties["hibernate.connection.connection_string"] = ConfigurationValues.GetValue("NHibernateConnectionString");
nHibernateConfig.Properties["hibernate.default_schema"] = ConfigurationValues.GetValue("NHibernateDefaultSchema");
nHibernateConfig.Properties["hibernate.connection.isolation"] = ConfigurationValues.GetValue("NHibernateConnectionIsolation");

//disable query cache
nHibernateConfig.Properties["hibernate.cache.use_query_cache"] = "false";
nHibernateConfig.Properties["hibernate.show_sql"] = "true";


sessionFactory = nHibernateConfig.BuildSessionFactory();
}


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 17, 2008 10:32 am 
Expert
Expert

Joined: Thu Dec 14, 2006 5:57 am
Posts: 1185
Location: Zurich, Switzerland
Can you post your log4net settings ? I think you have to enable Debug logging for this to work.

_________________
--Wolfgang


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.