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 #780515] Wed, 18 January 2012 07:27 Go to next message
Ana Oleski is currently offline Ana Oleski
Messages: 22
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 #780537 is a reply to message #780515] Wed, 18 January 2012 09:11 Go to previous messageGo to next message
Chris Delahunt is currently offline Chris Delahunt
Messages: 1016
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 #780808 is a reply to message #780537] Thu, 19 January 2012 08:07 Go to previous message
Ana Oleski is currently offline Ana Oleski
Messages: 22
Registered: July 2009
Junior Member
Yes, that worked. Thank you.
Re: show parameter values in sql log (no JPA) [message #781000 is a reply to message #780537] Thu, 19 January 2012 08:07 Go to previous message
Ana Oleski is currently offline Ana Oleski
Messages: 6
Registered: July 2009
Junior Member
Yes, that worked. Thank you.
Re: show parameter values in sql log (no JPA) [message #781017 is a reply to message #780537] Thu, 19 January 2012 08:07 Go to previous message
Ana Oleski is currently offline Ana Oleski
Messages: 6
Registered: July 2009
Junior Member
Yes, that worked. Thank you.
Re: show parameter values in sql log (no JPA) [message #781034 is a reply to message #780537] Thu, 19 January 2012 08:07 Go to previous message
Ana Oleski is currently offline Ana Oleski
Messages: 6
Registered: July 2009
Junior Member
Yes, that worked. Thank you.
Previous Topic:Native ORM vs JPA
Next Topic:Native ORM vs JPA
Goto Forum:
  


Current Time: Tue Jul 22 09:38:36 EDT 2014

Powered by FUDForum. Page generated in 0.23298 seconds