Hi
My application executed successfully with mysql4.1,hibernate2 on tomcat5.0 but now i am migrate the mysql4.1 to mysql5.0.While executing application on mysql5.0 it throws the following exception
1.net.sf.hibernate.JDBCException: could not insert: [com.panduit.acmnms.db.Location#-1]
2.java.sql.SQLException: Cannot add or update a child row: a foreign key constraint fails (`acmnms/locationindex`, CONSTRAINT `locationindex_ibfk_1` FOREIGN KEY (`locationID`) REFERENCES `location` (`locationID`))
Let me know how could i rectify the problem
Thanks
R.Jegadeeswari
|