public class EntityAlreadyManagedEvent extends ManagedEntityEvent
EntityAlreadyManagedEvent indicates that merge, save, saveOrUpdate, or update
were called on an entity that's already managed by the current Persistence Context.
Managed entities are automatically checked by Hibernate when the Persistence Context is flushed,
so the merge operation is redundant for managed entities.Event.Priority| Constructor and Description |
|---|
EntityAlreadyManagedEvent(Class entityClass,
Object entityIdentifier,
String entityStateTransitionMethodName)
Instantiate the event using the provided parameters.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
|
String |
getEntityStateTransitionMethodName()
The entity state transition method name that was called when the entity was found to be already managed.
|
Event.Priority |
getPriority()
Get the
Event.Priority of this Event |
getEntityClass, getEntityIdentifier, getEntityNamegetInfoUrlpublic EntityAlreadyManagedEvent(Class entityClass, Object entityIdentifier, String entityStateTransitionMethodName)
entityClass - entity classentityIdentifier - entity identifierentityStateTransitionMethodName - the entity state transition method namepublic String getEntityStateTransitionMethodName()
public Event.Priority getPriority()
Event.Priority of this EventEvent.Priority of this EventCopyright © 2026. All rights reserved.