Created
March 28, 2016 21:40
-
-
Save cosbor11/7b32a6f2b177fe734686 to your computer and use it in GitHub Desktop.
Verify relationship has been associated
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 | |
| Movie starWarsAfterSave1 = (Movie) manager.findById(Movie.class, starWarsMovie.movieId); | |
| manager.initialize(starWarsAfterSave1, "actors"); | |
| if(starWarsAfterSave1.actors.size() == 2) { | |
| System.out.println("Actors have been associated!"); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment