-->
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: Show SQL Statement Values?
PostPosted: Fri May 06, 2005 8:41 pm 
Newbie

Joined: Thu May 05, 2005 5:49 pm
Posts: 11
Location: San Diego, California
Hibernate version:
Hibernate 3.0

I am new to Hibernate, so excuse me if this is a simple question. But I did look at the docs and could not find an answer.

I have the following in my hibernate.cfg.xml file:

Code:
<property name="show_sql">true</property>


This logs all the prepared statements such as:

Code:
insert into ST_STUDENT_VACC_EXEMPTION (AS_OF_DATE, UPDATED_BY, UPDATED_TS, STUDENT_ID, VACCINATION_ID, EXEMPTION_ID, STUDENT_EXEMPTION_ID) values (?, ?, ?, ?, ?, ?, ?)


However, is there a way to also get Hibernate to display the values that are used in the SQL statement rather than (or in addition to) the question-mark place holders?

Thanks

A


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 06, 2005 11:13 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Set up the appropriate logging level for log4j . Check the FAQ or do a search for more info.


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.