• Post Reply Bookmark Topic Watch Topic
  • New Topic

parent key not found  RSS feed

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!