Refine EclipseLink SQL logging

Issue: SPR-12528
This commit is contained in:
Sebastien Deleuze
2014-12-15 11:30:36 +01:00
parent 431aed3b01
commit 4308a0404c

View File

@@ -76,7 +76,8 @@ public class EclipseLinkJpaVendorAdapter extends AbstractJpaVendorAdapter {
PersistenceUnitProperties.DDL_DATABASE_GENERATION);
}
if (isShowSql()) {
jpaProperties.put(PersistenceUnitProperties.LOGGING_LEVEL, Level.FINE.toString());
jpaProperties.put(PersistenceUnitProperties.CATEGORY_LOGGING_LEVEL_ +
org.eclipse.persistence.logging.SessionLog.SQL, Level.FINE.toString());
}
return jpaProperties;