Jakarta Persistence (JPA) Method
boolean contains(
Object entity
)
Determine if the given object is a managed entity instance belonging to the current persistence context.
- Parameters:
entity- entity instance
- Returns:
- boolean value indicating if entity belongs to the persistence context.
- Throws:
- if not an entity.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0