Skip to main content


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 12:27 Go to next message
Ana Oleski is currently offline Ana OleskiFriend
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 14:11 Go to previous messageGo to next message
Chris Delahunt is currently offline Chris DelahuntFriend
Messages: 1389
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 13:07 Go to previous message
Ana Oleski is currently offline Ana OleskiFriend
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 13:07 Go to previous message
Ana Oleski is currently offline Ana OleskiFriend
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 13:07 Go to previous message
Ana Oleski is currently offline Ana OleskiFriend
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 13:07 Go to previous message
Ana Oleski is currently offline Ana OleskiFriend
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: Fri Dec 06 05:04:10 GMT 2024

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

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

Back to the top