Package org.hibernate.engine.spi
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 here is used to describe both:
- the fact that they are known to the persistence provider (this is defined by the interface itself)
- its association with Session/EntityManager (this is defined by the state exposed through the interface)
-
Method Summary
Methods inherited from interface org.hibernate.engine.spi.PrimeAmongSecondarySupertypes
asCompositeOwner, asCompositeTracker, asHibernateProxy, asManagedComposite, asManagedEntity, asManagedMappedSuperclass, asPersistentAttributeInterceptable, asProxyConfiguration, asSelfDirtinessTracker
-
Method Details
-
asManaged
Special internal contract to optimize type checking- Specified by:
asManaged
in interfacePrimeAmongSecondarySupertypes
- Returns:
- this same instance
- See Also:
-