Fast Object Database for Java - with JPA/JDO support

detach(entity) - JPA EntityManager's method

Remove the given entity from the persistence context, causing a managed entity to become detached. Unflushed changes made to the entity if any (including removal of the entity), will not be synchronized to the database. Entities which previously referenced the detached entity will continue to reference it.
entity - entity instance
IllegalArgumentException - if the instance is not an entity
JPA 2.0