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:
parent
7b4ec72378
commit
823a16ce17
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue