Hi I'm getting the following prob in Spring & Hibernate f/w combination, while updating the multiple rows by using: getHibernateTemplate().merge(userref);
Excepiton:
org.springframework.dao.DataIntegrityViolationException: Hibernate operation: Could not execute JDBC batch update; SQL [insert into TBL_SUBENTITLEMENT (USER_ID, REF_DATA_ID, ID) values (?, ?, ?)]; ORA-02291: integrity constraint (RIMREP_DEV.FK_TBLSUBENT_REFDATAID) violated - parent key not found ; nested exception is java.sql.BatchUpdateException: ORA-02291: integrity constraint (RIMREP_DEV.FK_TBLSUBENT_REFDATAID) violated - parent key not found
at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.translate(SQLErrorCodeSQLExceptionTranslator.java:235) at org.springframework.orm.hibernate3.HibernateAccessor.convertJdbcAccessException(HibernateAccessor.java:424) at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:411) at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:363) at org.springframework.orm.hibernate3.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:670)
|