(grumbles after sending blank e-mail ... damn outlook) I am getting and saving an object (with children) using the following testscase:
public void testSaveCMCFMaster() throws Exception { CMCFMaster c = dao.getCMCFMaster(new Long(105)); assertTrue(c != null); // update system type to C c.setSystemType("C"); CMCFMaster newForm = dao.saveCMCFMaster(c); // verify that the systemType has been updated assertTrue(newForm.getSystemType().equals("C")); log.debug(newForm); } I don't want to change the PK on my parent object, nor on any children. However, it appears that Hibernate is trying to do this: [junit] Testcase: testSaveCMCFMaster(com.comcast.cable.dmc.itd.cct.persistence.CMCFMasterDAOHi be rnateTest): Caused an ERROR [junit] java.sql.BatchUpdateException: ORA-00001: unique constraint (CCTADMIN.CMCF_MPS_PK) viola ted [junit] com.comcast.cable.dmc.itd.cct.persistence.DAOException: java.sql.BatchUpdateException: O RA-00001: unique constraint (CCTADMIN.CMCF_MPS_PK) violated My DAO has simple retrieveObject and storeObject methods. In my parent's (CMCFMaster) *.hbm.xml mapping file, I have unsaved-value="null" and all children have unsaved-value="any". I got this idea from the FAQ. The FK violation above is from one of the children. I tried setting all unsaved-values to null, with no luck. Any help is greatly appreciated. Matt ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel