Skip to content
Snippets Groups Projects
Commit 5665ffb7 authored by Mirco Nasuti's avatar Mirco Nasuti
Browse files

removed verbose sql logs

parent 470f6cef
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,6 @@ import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean;
import org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter;
import javax.sql.DataSource;
import java.util.Properties;
/**
* Created by mirco on 11.07.16.
......@@ -36,13 +35,7 @@ public class PersistenceConfiguration {
em.setDataSource(dataSource);
JpaVendorAdapter vendorAdapter = new HibernateJpaVendorAdapter();
em.setJpaVendorAdapter(vendorAdapter);
em.setJpaProperties(additionalProperties());
return em;
}
Properties additionalProperties() {
Properties properties = new Properties();
properties.setProperty("hibernate.show_sql", "true");
return properties;
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment