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 ( 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 & lt; property name = "eclipselink.logging.level" value = "ALL" /> in my persistence.xml) I have been, however, for example
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
Post a Comment