I'm using Spring 2.0 and Hibernate 3.1.2. If I try to insert/update a collection of object by using
getHibernateTemplate().saveOrUpdateAll(col);
once there's an object with error, the exception thrown by Hibernate seems not having the information of with object causing the problem.
That makes debug and trace hard to be done. Therefore, any method to allow easy identification?
If I loop the object one by one in a TRANSACTION (Hibernate transaction manager with spring), it's the same as above that the exception thrown at last (seems during commit).
Thanks!
|