public class TableRowAlreadyManagedEvent extends ManagedEntityEvent
TableRowAlreadyManagedEvent indicates that a given database table row
is managed by an entity that was already bound to the current Persistence Context.
When having multiple entities mapped to the same database table, it's important to load at most one entity that manages a given record. Otherwise, you could end up having to entity objects with different state synchronizing the same table record at flush time.
Event.Priority| Constructor and Description |
|---|
TableRowAlreadyManagedEvent(Class entityClass,
Object entityIdentifier,
Class managedEntityClass)
Instantiate the event using the provided parameters.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
|
Class |
getManagedEntityClass()
Get the existing entity class that already manages the table row that
the
ManagedEntityEvent.getEntityClass() wants to manage as well. |
Event.Priority |
getPriority()
Get the
Event.Priority of this Event |
getEntityClass, getEntityIdentifier, getEntityNamegetInfoUrlpublic TableRowAlreadyManagedEvent(Class entityClass, Object entityIdentifier, Class managedEntityClass)
entityClass - entity classentityIdentifier - entity identifiermanagedEntityClass - the entity class already managing the same table rowpublic Class getManagedEntityClass()
ManagedEntityEvent.getEntityClass() wants to manage as well.public Event.Priority getPriority()
Event.Priority of this EventEvent.Priority of this EventCopyright © 2026. All rights reserved.