Cannot add or update a child row: a foreign key constraint fails

Posted by sarah on Stack Overflow See other posts from Stack Overflow or by sarah
Published on 2010-04-14T10:39:01Z Indexed on 2010/04/14 10:43 UTC
Read the original article Hit count: 206

Filed under:
|

Hi All,

i am having a user table which has desname as FK referring to des table ,i am trying to add desname in user but i am gettng Cannot add or update a child row: a foreign key constraint fails error.

desname is prepopulated and i am selected the same for he user.Where i am doing wrong I ma using mysql and hibernate hbm

© Stack Overflow or respective owner

Related posts about java

Related posts about hibernate