Interface Managed
- All Superinterfaces:
PrimeAmongSecondarySupertypes
- All Known Subinterfaces:
ManagedComposite, ManagedEntity, ManagedMappedSuperclass
Contract for classes (specifically, entities and components/embeddables) that are "managed".
Developers can choose to either have their classes manually implement these interfaces, or
Hibernate can enhance their classes to implement these interfaces via built-time or run-time
enhancement.
The term managed is used in two senses:
-
A class is considered managed if it belongs to the persistence unit. This is
represented by the class implementing
Managed. - An instance is considered managed if it is associated with a persistence context. Any such association is represented by the state exposed via operations of this interface.
-
Method Summary
-
Method Details
-
asManaged
Special internal contract to optimize type checking- Specified by:
asManagedin interfacePrimeAmongSecondarySupertypes- Returns:
- this same instance
- See Also:
-