Hi,
I need to enable Hibernate SQL output only when my webapp in running on my
dev environment.
On Tomcat since I could do something like this:
Map<String, String> properties = new HashMap<String, String>();
> if(ServerUtil.isLocal())
> {
> properties.put("hibernate.show_sql", "true");
> properties.put("hibernate.format_sql", "true");
> }
> emf = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT, properties);
Is there any way I can do something similar with the injected
EntityManagerFactory on TomEE?
Thanks