Package cz.cvut.kbss.jopa.model
Interface Manageable
public interface Manageable
Interface dynamically assigned to entity classes so that their instances may be attached to a persistence context.
-
Method Summary
Modifier and TypeMethodDescriptionGets the persistence context associated with this entity instance.void
Sets persistence context to this instance.
-
Method Details
-
setPersistenceContext
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
-