Things to try:
- put these properties within your hiberate config to enable sql logging:
Code:
<property name="hibernate.show_sql">true</property>
<property name="hibernate.format_sql">true</property>
- Analyse your database mappings, look out for Eager relationships that may cause unnecessary data to be loaded. Especially look out for "n + 1" problems where growing collections are loaded unnecessarily when an object needs to be saved.
- Use DTO's to load only the data you need when reading data from the db.
- Look into hiberate second level caching