Fast Object Database for Java - with JPA/JDO support

contains(entity) - JPA EntityManager's method

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