Class BidirectionalSynchronizationEvent

All Implemented Interfaces:
Event, Serializable

public class BidirectionalSynchronizationEvent extends EntityAttributeMappingEvent
The BidirectionalSynchronizationEvent indicates that an entity attribute, mapped as a bidirectional OneToMany or ManyToMany association does not contain the addEntity(Entity entity) and removeEntity(Entity entity) synchronization methods
Since:
1.3.0
Author:
Vlad Mihalcea
See Also:
  • Constructor Details

    • BidirectionalSynchronizationEvent

      public BidirectionalSynchronizationEvent(EntityMetadata entityMetadata, String entityAttribute, Class<?> otherEntityClass, boolean addMethodMissing, boolean removeMethodMissing)
      Instantiate the event using the provided parameters.
      Parameters:
      entityMetadata - entity metadata
      entityAttribute - entity attribute
      otherEntityClass - the other end of this bidirectional association
      addMethodMissing - the addEntity method is missing
      removeMethodMissing - the removeEntity method is missing
  • Method Details

    • getOtherEntityClass

      public Class<?> getOtherEntityClass()
      Get the Class of the other side of the bidirectional association represented by the EntityAttributeMappingEvent.getEntityAttribute() attribute.
      Returns:
      the Class of the other side of the bidirectional association
    • isAddMethodMissing

      public boolean isAddMethodMissing()
      Check if the addEntity method missing.
      Returns:
      the addEntity method missing status
    • isRemoveMethodMissing

      public boolean isRemoveMethodMissing()
      Check if the removeEntity method missing.
      Returns:
      the removeEntity method missing status
    • getPriority

      public Event.Priority getPriority()
      Get the Event.Priority of this Event
      Returns:
      the Event.Priority of this Event
    • getDescription

      public String getDescription()
      Get the String description of this Event
      Returns:
      the String description of this Event