Class RedundantSessionFlushEvent

All Implemented Interfaces:
Event, Serializable

public class RedundantSessionFlushEvent extends SessionEvent
The RedundantSessionFlushEvent indicates that the current Persistence Context (EntityManager or Session) has been flushed without triggering any entity modification.

If a read-write transaction doesn't change any entity, then you could switch to using a read-only Session that doesn't need to pay the overhead of flushing entities.

Since:
2.8.0
Author:
Vlad Mihalcea
See Also: