Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

CMRs, more basic questions  RSS feed

 
T Rob Darrough
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Taking a que from Head First, say we have two entity beans, Director and Movie, in a CMR. Consider this line of code ...

myDirector.setMovies(myMovieColl);

For each movie in myMovieColl this line of code would change thier director to be myDirector? This change would be made in the database as well, right?

I tried this out and it's not working. Basically getMovies() will give back myMovieColl but that's about all. The movies in myMovieColl still have thier old director. I checked the DD out, and it matches whats in the book.

Any ideas? Can anyone confirm what is supposed to happen?
 
Ramesh Aiyappan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you provide the DD that you have used ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!