Created
March 27, 2016 05:37
-
-
Save cosbor11/e337c71c4fc28be614a6 to your computer and use it in GitHub Desktop.
Verify the actors were not associated to the movie
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // The Persistence Manager did not save the actors and associated it to the movie //2 | |
| Movie starWarsAfterSave1 = (Movie) manager.findById(Movie.class, starWarsMovie.movieId); | |
| manager.initialize(starWarsAfterSave1, "actors"); | |
| if(starWarsAfterSave1.actors.size() == 0) { | |
| System.out.println("Actors have NOT been associated yet"); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment