jpa 2.0 - How to log SQL values sent to my DB using EclipseLink? -


I use EclipseLink as my JPA2 firmness layer, and I would like to see the values ​​sent to DB in the log.

I already use SQL queries ( & lt; property name = "eclipselink.logging.level" value = "ALL" /> in my persistence.xml) I have been, however, for example

You receive a SQL statement with your values ​​instead of a placeholder or by a JDBC proxy driver Have to use. This approach works well, you are using the Eclipse link with a connection pool whose URL is derived from persistence.xml (where you get the JDBC recognized by the proxy driver rather than the actual URL can be specified), but is useful in a Java EE environment (for at least), unless you can not obtain the JNDI data source to use the proxy driver.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -