Example usage for org.springframework.data.mongodb.core.query Update set

List of usage examples for org.springframework.data.mongodb.core.query Update set

Introduction

In this page you can find the example usage for org.springframework.data.mongodb.core.query Update set.

Prototype

public Update set(String key, Object value) 

Source Link

Document

Update using the $set update modifier

Usage

From source file:piecework.repository.concrete.ProcessInstanceRepositoryCustomImpl.java

private static void include(Update update, String label) {
    if (StringUtils.isNotEmpty(label))
        update.set("processInstanceLabel", label);
}