All Implemented Interfaces:
Event, Serializable

public class OneToOneParentSideEvent extends EntityAttributeMappingEvent
The OneToOneParentSideEvent indicates that an entity attribute is mapped as a parent-side OneToOne association without enabling bytecode enhancement or setting the OneToOne.optional() attribute to the value of true, therefore, the association is always going to be fetched eagerly.
Since:
1.0.0
Author:
Vlad Mihalcea
See Also:
  • Constructor Details

    • OneToOneParentSideEvent

      public OneToOneParentSideEvent(EntityMetadata entityMetadata, String entityAttribute, boolean enhancedForLazyLoading)
  • Method Details

    • isEnhancedForLazyLoading

      public boolean isEnhancedForLazyLoading()
      Check if bytecode enhancement lazy loading is enabled.
      Returns:
      bytecode enhancement lazy loading is enabled
    • 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