You are currently browsing legacy 3.5 version of documentation. Click here to switch to the newest 5.1 version.
Session: Saving changes
Pending session operations e.g.
delete and many others will not be send to server till
saveChanges is called.
public void saveChanges();
// storing new entity Employee employee = new Employee(); employee.setFirstName("John"); employee.setLastName("Doe"); session.store(employee); session.saveChanges();