File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Spring with hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Application Frameworks » Spring
Reply Bookmark "Spring with hibernate" Watch "Spring with hibernate" New topic
Author

Spring with hibernate

Nisha gowda
Greenhorn

Joined: Feb 23, 2010
Posts: 9
In my application we are using spring. All the database operations are through Hibernate. daoImpl class extends HibernateTemplate.

I observed that when code executes "this.getSession().save()" operation the same update command is executed many times (Can see these in server log)

All these statements are from Hibernate. So my question is this a normal behavior? why so many update commands to insert one row?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12612
The "why" depends on how the entity's relationships have been defined.
 
 
subject: Spring with hibernate
 
MyEclipse, The Clear Choice