-->
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: SQL Statement ohne Fragezeichen anzeigen?
PostPosted: Wed Mar 29, 2006 1:29 pm 
Newbie

Joined: Tue Mar 07, 2006 8:31 am
Posts: 7
Hallo,

wenn ich show_sql auf true setze, sehe ich zwar den SQL batch, aber statt der variablen sehe ich nur die Fragezeichen:

insert into one.document (pdf, xml, xsl, title, desc, id) values (?, ?, ?, ?, ?, ?)

Wie kann ich kompleten Statement mit Werten sehen?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 31, 2006 10:31 am 
Pro
Pro

Joined: Mon Jan 24, 2005 5:39 am
Posts: 216
Location: Germany
Eine Möglichkeit ist der Logger:
Code:
log4j.logger.org.hibernate=debug
log4j.logger.org.hibernate.type=debug


Dann erscheint etwas wie:

Code:
DEBUG - insert into IFB.users (emailAddress, dVal, iVal, lastLogon, DAT_ULTIMO, SL_ULTIMO, dateTime, knzCallPut, LogonId) values (?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: insert into IFB.users (emailAddress, dVal, iVal, lastLogon, DAT_ULTIMO, SL_ULTIMO, dateTime, knzCallPut, LogonId) values (?, ?, ?, ?, ?, ?, ?, ?, ?)
DEBUG - preparing statement
DEBUG - Dehydrating entity: [de.ifbfag.base.db.User#ifb1234]
DEBUG - binding 'g.schroeder@fdfls.s.dsd' to parameter: 1
DEBUG - binding '1.23' to parameter: 2
DEBUG - binding '456' to parameter: 3
DEBUG - binding '31.03.2006' to parameter: 4
DEBUG - binding '30 Juni 2002' to parameter: 5
DEBUG - binding '1' to parameter: 6
DEBUG - binding '31.03.2006 16:30:34' to parameter: 7
DEBUG - binding 'Normal' to parameter: 8
DEBUG - binding 'ifb1234' to parameter: 9

_________________
dont forget to rate !


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.