Interface LazyPropertyInitializer

All Known Implementing Classes:
AbstractEntityPersister, JoinedSubclassEntityPersister, SingleTableEntityPersister, UnionSubclassEntityPersister

public interface LazyPropertyInitializer
Contract for controlling how lazy properties get initialized.
  • Field Details

    • UNFETCHED_PROPERTY

      static final Serializable UNFETCHED_PROPERTY
      Marker value for uninitialized properties.
  • Method Details

    • initializeLazyProperty

      @Nullable Object initializeLazyProperty(@Nonnull String fieldName, @Nonnull Object entity, @Nonnull SharedSessionContractImplementor session)
      Initialize the property, and return its new value.
      Parameters:
      fieldName - The name of the field being initialized
      entity - The entity on which the initialization is occurring
      session - The session from which the initialization originated.
      Returns:
      ?