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
(cherry picked from commit 823a16c)
This commit is contained in:
committed by
Juergen Hoeller
parent
e5025419c2
commit
28f15057ac
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -78,6 +78,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;
|
||||
|
||||
Reference in New Issue
Block a user