public class SecondaryQueryEntityFetchingEvent extends SessionEvent
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.Event.PriorityHIDDEN_DESCRIPTION| Constructor and Description |
|---|
SecondaryQueryEntityFetchingEvent(Class entityClass) |
| Modifier and Type | Method and Description |
|---|---|
Class |
getEntityClass() |
Event.Priority |
getPriority()
Get the
Event.Priority of this Event |
public SecondaryQueryEntityFetchingEvent(Class entityClass)
public Class getEntityClass()
public Event.Priority getPriority()
Event.Priority of this EventgetPriority in interface EventgetPriority in class SessionEventEvent.Priority of this EventCopyright © 2026. All rights reserved.