Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

parent key not found

 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a mapping with one parent and two child associated with it.When its run its throw the exception parent key not found.When i put sql=on in hibernate its
first inserting child object value.But i want first it should insert parent value after that child.

Please help me where i am wrong.

My hbm file is.


and the sql which run on the prompt:

H
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic