Class CloningReadOnlyUnitOfWork

All Implemented Interfaces:
ConfigurationHolder, MetamodelProvider, UnitOfWork, Wrapper

public class CloningReadOnlyUnitOfWork extends AbstractUnitOfWork
Read-only UoW which clones all entities before returning them to the application.

Cloning entities allows using second-level cache which brings better performance than ReadOnlyUnitOfWork which does not clone entities but also skips second-level cache (unless entity is already there in which case it behaves exactly like this class).