Interface Manageable


public interface Manageable
Interface dynamically assigned to entity classes so that their instances may be attached to a persistence context.
  • Method Details

    • setPersistenceContext

      void setPersistenceContext(UnitOfWork uow)
      Sets persistence context to this instance.

      Done when an object enters the persistence context

      Parameters:
      uow - Persistence context
    • getPersistenceContext

      UnitOfWork getPersistenceContext()
      Gets the persistence context associated with this entity instance.
      Returns:
      Persistence context instance