Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Ronnie Mccoy   on Mar 22 In Java Category.

  
Question Answered By: Pam Harrison   on Mar 22

- Make sure you flush the session  or commit the transaction
- Make sure the cascade attribute of the association is set  to "save" or
"all", otherwise if you save  a Computer it won't save the dependent objects.
- If it's a bidirectional association, make sure you also set the other end
of the association (a setParentComputer in Hardware?).

Share: