Session: How to refresh entity?
To update entity with latest changes from server
refresh method from
advanced() session operations can be used.
public <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 transient entity (not attached) or entity that was deleted on server-side will result in