Add logging config to test to reduce output
-
package com.quorum.tessera.dao;
import com.quorum.tessera.transaction.EncryptedRawTransactionDAO;
@@ -46,14 +45,18 @@ public abstract class JpaConfig {
localContainerEntityManagerFactoryBean.setJpaDialect(new EclipseLinkJpaDialect());
localContainerEntityManagerFactoryBean.setJpaVendorAdapter(new EclipseLinkJpaVendorAdapter());
- localContainerEntityManagerFactoryBean.setJpaPropertyMap(new HashMap<String, String>() {{
+ localContainerEntityManagerFactoryBean.setJpaPropertyMap(new HashMap<String, String>() {
+ {
+
+ put("eclipselink.logging.logger", "org.eclipse.persistence.logging.slf4j.SLF4JLogger");
put("eclipselink.weaving", "false");
// put("eclipselink.logging.level.sql","FINE");
// put("eclipselink.logging.parameters","true");
put("javax.persistence.schema-generation.database.action", "create");
put("javax.persistence.schema-generation.scripts.action", "create");
put("javax.persistence.schema-generation.scripts.create-target", "target/" + getCreateScriptName());
- }});
+ }
+ });
/*
<property name="jpaVendorAdapter">
@@ -64,12 +67,10 @@ public abstract class JpaConfig {
</bean>
</property>
*/
-
return localContainerEntityManagerFactoryBean;
}
-
public final String getCreateScriptName() {
return String.join(".", getClass().getSimpleName(), "ddl");
}
