Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » show parameter values in sql log (no JPA)
show parameter values in sql log (no JPA) [message #780992] Wed, 18 January 2012 12:27 Go to next message
Ana Oleski is currently offline Ana Oleski
Messages: 6
Registered: July 2009
Junior Member
Hi,


how can I go back to showing parameter values in sql instead of [x parameters bound]?
(See https://bugs.eclipse.org/bugs/show_bug.cgi?id=329852)

I found the answer for JPA

<property name="eclipselink.logging.parameters" value="true"/> in persistence.xml.

But I'm not using JPA. I have an oldfashioned ServerSession with a custom Log4j SessionLog. Where in java code should I set this property?

Thanx

Ana
Re: show parameter values in sql log (no JPA) [message #780993 is a reply to message #780992] Wed, 18 January 2012 14:11 Go to previous message
Chris Delahunt is currently offline Chris Delahunt
Messages: 1034
Registered: July 2009
Senior Member
Hello Ana,

You will need to use SessionLog's setShouldDisplayData(Boolean) to change the value. If it has not been set though, parameters should print out if the log level is set to FINE or more.

Best Regards,
Chris
Re: show parameter values in sql log (no JPA) [message #781010 is a reply to message #780992] Wed, 18 January 2012 14:11 Go to previous message
Chris Delahunt is currently offline Chris Delahunt
Messages: 1034
Registered: July 2009
Senior Member
Hello Ana,

You will need to use SessionLog's setShouldDisplayData(Boolean) to change the value. If it has not been set though, parameters should print out if the log level is set to FINE or more.

Best Regards,
Chris
Re: show parameter values in sql log (no JPA) [message #781027 is a reply to message #780992] Wed, 18 January 2012 14:11 Go to previous message
Chris Delahunt is currently offline Chris Delahunt
Messages: 1034
Registered: July 2009
Senior Member
Hello Ana,

You will need to use SessionLog's setShouldDisplayData(Boolean) to change the value. If it has not been set though, parameters should print out if the log level is set to FINE or more.

Best Regards,
Chris
Previous Topic:show parameter values in sql log (no JPA)
Next Topic:Metamodel not being created until after first use
Goto Forum:
  


Current Time: Thu Oct 23 11:20:02 GMT 2014

Powered by FUDForum. Page generated in 0.09407 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software