Some applications that use Hibernate generate a huge amount of SQL when the application is started. Sometimes it's better to enable/disable the SQL log in specific points when debugging.
To enable, just run this code in your IDE when you are debugging the aplication:
org.apache.log4j.Logger.getLog...