Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
Yes, that worked. Thank you.
Previous Topic:Native ORM vs JPA
Next Topic:Native ORM vs JPA
Goto Forum:
  


Current Time: Mon Jul 14 02:23:59 EDT 2025

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

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

Back to the top