MCPcopy Create free account
hub / github.com/MorphiaOrg/morphia / save

Method save

core/src/main/java/dev/morphia/Datastore.java:487–487  ·  view source on GitHub ↗

Saves the entities (Objects) and updates the @Id field @param the type of the entity @param entities the entities to save @return the list of updated entities @deprecated use #save(List) instead

(Iterable<T> entities)

Source from the content-addressed store, hash-verified

485 * @deprecated use {@link #save(List)} instead
486 */
487 @Deprecated(since = "2.0", forRemoval = true)
488 default <T> List<T> save(Iterable<T> entities) {
489 List<T> list = new ArrayList<>();
490 entities.forEach(list::add);

Callers 15

testBulkUpdateMethod · 0.95
testUpdateMethod · 0.95
testStudentsMethod · 0.95
mergeMethod · 0.95
testRemoveAllListMethod · 0.95
testSetUnsetMethod · 0.95
testUpdateKeyListMethod · 0.95
testUpdateKeyRefMethod · 0.95
testTailableCursorsMethod · 0.95

Calls

no outgoing calls

Tested by 15

testBulkUpdateMethod · 0.76
testUpdateMethod · 0.76
testStudentsMethod · 0.76
mergeMethod · 0.76
testRemoveAllListMethod · 0.76
testSetUnsetMethod · 0.76
testUpdateKeyListMethod · 0.76
testUpdateKeyRefMethod · 0.76
testTailableCursorsMethod · 0.76