While struggling to see Hibernate-generated SQL queries in JBoss7 log, I'm looking for a definitive answer to following question:
Q: Should entries in both of these config locations be present AT THE SAME TIME, or does any one override another?
1) in log4j.properties
log4j.logger.org.hibernate.SQL=ALL #or DEBUG
2) in persistence.xml
<persistence-unit...>
<properties>
<property name="hibernate.show_sql" value="true"/>
...
This is a vital question for me as I can only edit 1).