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

We'd probably need to see some code to help you more, but just based on the INSERT statements, it looks like maybe your foreign key from company_links to company is wrong. Your INSERT into company_links has a 37 for idCompany and a 0 for id . Your foreign key is set up on id not idCompany so the 37 should be set on id or the foreign should be changed to idCompany .

Looks like you have your parameter order mixed up. Your insert statement is.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions