klyn.data.EntityManager.refresh
method
public refresh<T>(entity as T) as Void
Description

Reloads one managed entity from its provider state.

Scalar values are replaced unconditionally. Relationships that were already loaded, plus relationships declared FetchType.EAGER, are reloaded explicitly; lazy unloaded relations remain unloaded. A CascadeType.REFRESH relationship propagates the operation without hidden relation access.

Parameters
ParameterDescription
<T>Entity type.
entityManaged entity to reload.
Throws
  • EntityLifecycleException when the entity is detached, new, or scheduled for removal.
  • EntityNotFoundException when the provider row no longer exists.
Example
manager.refresh(user)