boolean contains(
Object entity
)
Check if the instance is a managed entity instance belonging to the current persistence context.
- Parameters:
entity
- entity instance
- Return:
- boolean indicating if entity is in persistence context
- Throws:
- IllegalArgumentException - if not an entity
- Since:
- JPA 1.0