You are currently browsing legacy 3.0 version of documentation. Click here to switch to the newest 5.0 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Session: Saving changes

Pending session operations e.g. store, delete and many others will not be send to server till saveChanges is called.

Syntax

public void saveChanges();

Example

// storing new entity
Employee employee = new Employee();
employee.setFirstName("John");
employee.setLastName("Doe");
session.store(employee);

session.saveChanges();