Class TableRowAlreadyManagedEvent

All Implemented Interfaces:
Event, Serializable

public class TableRowAlreadyManagedEvent extends ManagedEntityEvent
The TableRowAlreadyManagedEvent indicates that a given database tabe row is already managed by an entity 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 managed that record. Otherwise, you could end up having to entity objects with different state synchronizing the same table record at flush time.

Since:
2.8.0
Author:
Vlad Mihalcea
See Also:
  • Constructor Details

    • TableRowAlreadyManagedEvent

      public TableRowAlreadyManagedEvent(Class entityClass, Object entityIdentifier, Class managedEntityClass)
      Instantiate the event using the provided parameters.
      Parameters:
      entityClass - entity class
      entityIdentifier - entity identifier
      managedEntityClass - the entity class already managing the same table row
  • Method Details