• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Child object is not saving.

 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a screen where parent table has two child and having one to one mapping between parent and child's.

I want if parent is saved then child should automatically saved.But this not happening.
Where Student is parent and school and scast are its child.

Please help me....


Below are my HBM files.



Java code
 
Sridhar Santhanakrishnan
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about saving the school object instead of student?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic