Log SQL parameters in EclipseLink when using showSql

As of EclipseLink 2.4.0 - Juno this is not sufficient to log
SQL parameter binding. Additionally,
eclipselink.logging.parameters must be enabled.

Issue: SPR-16383
This commit is contained in:
Timo Meinen 2018-01-16 13:00:13 +01:00 committed by Juergen Hoeller
parent 7b4ec72378
commit 823a16ce17
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@ public class EclipseLinkJpaVendorAdapter extends AbstractJpaVendorAdapter {
if (isShowSql()) {
jpaProperties.put(PersistenceUnitProperties.CATEGORY_LOGGING_LEVEL_ +
org.eclipse.persistence.logging.SessionLog.SQL, Level.FINE.toString());
jpaProperties.put(PersistenceUnitProperties.LOGGING_PARAMETERS, Boolean.TRUE.toString());
}
return jpaProperties;