Class SecondaryQueryEntityFetchingEvent

java.lang.Object
io.hypersistence.optimizer.core.event.AbstractEvent
io.hypersistence.optimizer.hibernate.event.session.SessionEvent
io.hypersistence.optimizer.hibernate.event.session.SecondaryQueryEntityFetchingEvent
All Implemented Interfaces:
Event, Serializable

public class SecondaryQueryEntityFetchingEvent extends SessionEvent
The SecondaryQueryEntityFetchingEvent indicates that an entity has been fetched using a secondary SQL query instead of being fetched using a JOIN FETCH clause. Since secondary queries can easily turn into N+1 query issues, this anti-pattern should be avoided.
Since:
2.6.0
Author:
Vlad Mihalcea
See Also: