Skip to content

Commit 28f1505

Browse files
timomeinenjhoeller
authored andcommitted
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)
1 parent e502541 commit 28f1505

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-orm/src/main/java/org/springframework/orm/jpa/vendor/EclipseLinkJpaVendorAdapter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2014 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -78,6 +78,7 @@ else if (getDatabase() != null) {
7878
if (isShowSql()) {
7979
jpaProperties.put(PersistenceUnitProperties.CATEGORY_LOGGING_LEVEL_ +
8080
org.eclipse.persistence.logging.SessionLog.SQL, Level.FINE.toString());
81+
jpaProperties.put(PersistenceUnitProperties.LOGGING_PARAMETERS, Boolean.TRUE.toString());
8182
}
8283

8384
return jpaProperties;

0 commit comments

Comments
 (0)