public enum EventCategory extends Enum<EventCategory>
EventCategory classifies an Event based on the phase during which
it is emitted, so that configuration and mapping events (detected once, at bootstrap)
can be told apart from runtime events (emitted continuously while the application runs).
The classification is based on the fully qualified name of the Event class, so
it does not require a compile-time dependency on every concrete event type.
| Enum Constant and Description |
|---|
CONFIGURATION
Configuration-related events, detected when scanning the JPA/Hibernate configuration.
|
MAPPING
Mapping-related events, detected when scanning the entity mappings.
|
RUNTIME
Runtime events, emitted while the application is executing (e.g.
|
| Modifier and Type | Method and Description |
|---|---|
static EventCategory |
of(Event event)
Resolve the
EventCategory of the provided Event. |
static EventCategory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EventCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EventCategory CONFIGURATION
public static final EventCategory MAPPING
public static final EventCategory RUNTIME
public static EventCategory[] values()
for (EventCategory c : EventCategory.values()) System.out.println(c);
public static EventCategory valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static EventCategory of(Event event)
EventCategory of the provided Event.event - the Event to classifyEventCategory of the provided EventCopyright © 2026. All rights reserved.