Session: How to Refresh an Entity
To update an entity with the latest changes from the server, use the
refresh method from
advanced session operations.
<T> void refresh(T entity);
||Instance of an entity that will be refreshed
Employee employee = session.load(Employee.class, "employees/1");
// LastName changed to 'Shmoe'
Refreshing a transient entity (not attached) or an entity that was deleted on server-side will result in a