-->
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.  [ 1 post ] 
Author Message
 Post subject: suppressing Hibnernate: select ...etc....
PostPosted: Tue Oct 30, 2007 9:45 am 
Newbie

Joined: Tue Oct 30, 2007 9:02 am
Posts: 1
Location: Michigan
I have a number of console programs I need to write for mainframe -
to sql updates and extracts.

When I run a sample program for a sql table read / display, I'm
able to suppress all the:

Hibernate 3.2.0.ga
loaded properties from resource hibernate.properties:
using java.io streams to persist binary types
....etc.....

messages using log4j, but I'm still getting the:

Hibernate: select <table>0_.id as id0_, <table>0_.USERID as USERID0_,

...etc messages. If I use setMaxResults() and setFirstResult() to page
through a large table, I get the 'select' message for each page.
Is there any way in hibernate.properties to suppress the 'select'
messages ? I've got the 'hibernate.show_sql false' set in
hibernate.properties, and I set up a hibernate.cfg.xml file in my
JAR file that holds the EJB3 beans, with a line that does the same:

<property name="hibernate.show_sql">false</property>

I even tried to put lines in the console program like:

org.hibernate.cfg.Configuration config
= new org.hibernate.cfg.Configuration();
config.setProperty("hibernate.show_sql", "false" );

.....all to no avail.
Is there another setting to disable the above 'select' message showing ?

I'm running JBoss 4.0.5ga on windows XP, Hibernate 3.2.0ga,
Java 1.5.0_11-b03, and Mysql 5.0.45-community-nt, and the
Mysql-connector v5.0.7.

Thanks.....tom c.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.