I have a general question about the following methods:
Method-2: manager2.storeAll(Iterable<?> instances)
Am I right with the following assumption:
Use Method-1 if you want to update all instances within a collection. It does NOT add or remove instances from the collection.
Use Method-2 if you want to add or remove instances from the collection. It does NOT update any existing instance within the collection.
So for example:
// updates the user instance and add/remove any tasks from user.getTasks() (existing task-instances will NOT be updated) manager1.storeAll(user, user.getTasks()); // updates each task-instance within user.getTasks() (does NOT remove or add any task in user.getTasks()) manager2.storeAll(user.getTasks());
Are my assumptions of those two storeAll()-methods correct?