One note: 'detached' means not managed by a persistence context. This can happen inside (e.g. ig you call em.clear()) or outside a transaction (after em.close()). If you are using an extended persistence context (and do not call em.clear()), your instances are still managed even outside of an active transaction.
Regards,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]
http://forums.java.net/jive/thread.jspa?messageID=212629