Created
March 27, 2016 05:39
-
-
Save cosbor11/6fbf62abac1ba73cd82a to your computer and use it in GitHub Desktop.
Batch save relationship correlations using saveRelationshipsForEntity
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
| // Associate the actors to the movie. First add the actor unique identifiers to a set //3 | |
| Set actorIds = new HashSet<>(); | |
| actorIds.add(1); | |
| actorIds.add(2); | |
| manager.saveRelationshipsForEntity(starWarsMovie, "actors", actorIds); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment