When debugging it could be useful to see what are the queries Hibernate executes. To do so there are some ways of enabling debug logging:
Using Log4J configuration
(in Liferay: you can change it from the admin panel without restarting the server)
Modifying Hibernate XML configuration
You need to change the factory bean that handles Hibernate sessions (a subclass of LocalSessionFactoryBean).